From bb8bf4d40cb67dac12106746067994c38229de69 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai@suse.de>
Date: Wed, 6 Jul 2011 13:07:54 +0200
Subject: [PATCH] ALSA: hda - Parse HP and speaker DACs even for multi connections for ALC662
Git-commit: bb8bf4d40cb67dac12106746067994c38229de69
Patch-mainline: 3.1-rc2
Refernces: FATE#314106,FATE#314311,FATE#313695

In alc662_auto_fill_dac_nids(), the HP and speaker DACs aren't parsed
when the corresponding pins aren't fixed with single DACs.
Now check these DACs even for non-fixed pins.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

---
 sound/pci/hda/patch_realtek.c |    7 +++++++
 1 file changed, 7 insertions(+)

--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -18860,6 +18860,13 @@ static int alc662_auto_fill_dac_nids(str
 				sizeof(hda_nid_t) * (cfg->line_outs - i - 1));
 	}
 
+	if (cfg->hp_outs && !spec->multiout.hp_nid)
+		spec->multiout.hp_nid =
+			alc_auto_look_for_dac(codec, cfg->hp_pins[0]);
+	if (cfg->speaker_outs && !spec->multiout.extra_out_nid[0])
+		spec->multiout.extra_out_nid[0] =
+			alc_auto_look_for_dac(codec, cfg->speaker_pins[0]);
+
 	return 0;
 }
 
