[ALSA] hda-codec - Fix ALC662 auto mode
authorKailang Yang <kailang@realtek.com.tw>
Thu, 5 Jul 2007 10:35:15 +0000 (12:35 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 20 Jul 2007 09:11:42 +0000 (11:11 +0200)
Fixed ALC662 auto mode, wrong NIDs were chosen.

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/hda/patch_realtek.c

index 2d35b4cfb2b8f4e3d7d33a61128df9e405ff9aa7..acaf8c39eea6ae8dc5f7c53bbcc1679a5e9ae9ed 100644 (file)
@@ -11013,7 +11013,7 @@ static int alc662_auto_create_multi_out_ctls(struct alc_spec *spec,
        for (i = 0; i < cfg->line_outs; i++) {
                if (!spec->multiout.dac_nids[i])
                        continue;
-               nid = alc880_idx_to_dac(i);
+               nid = alc880_idx_to_mixer(i);
                if (i == 2) {
                        /* Center/LFE */
                        err = add_control(spec, ALC_CTL_WIDGET_VOL,