]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ALSA: hda - Use common paser for digital I/O for ALC260
authorTakashi Iwai <tiwai@suse.de>
Thu, 7 Jul 2011 15:05:48 +0000 (17:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Jul 2011 16:03:12 +0000 (18:03 +0200)
Avoid open-codes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 42026f4978c3a490f8743f8242ece182ed54c1e3..8366e02df3cc6232aa289e8a29ec48758248fb7a 100644 (file)
@@ -7200,8 +7200,8 @@ static int alc260_parse_auto_config(struct hda_codec *codec)
 
        spec->multiout.max_channels = 2;
 
-       if (spec->autocfg.dig_outs)
-               spec->multiout.dig_out_nid = ALC260_DIGOUT_NID;
+       alc_auto_parse_digital(codec);
+
        if (spec->kctls.list)
                add_mixer(spec, spec->kctls.list);