summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLydia Wang <lydiawang@viatech.com.cn>2011-07-08 08:04:33 +0200
committerTakashi Iwai <tiwai@suse.de>2011-07-08 08:20:05 +0200
commita2a870c82797e47884b2736e95e9d9c89a51c219 (patch)
tree63010ccdd7e42c5e8447138b05fe50f0482c1d30
parentALSA: hda - Fix DAC checks for VT2002P/1802/1812 codecs (diff)
downloadlinux-a2a870c82797e47884b2736e95e9d9c89a51c219.tar.xz
linux-a2a870c82797e47884b2736e95e9d9c89a51c219.zip
ALSA: hda - Fix Independent-HP detection on VT2002P/1802/1812 codecs
For VT2002P, VT1802 and VT1812 codecs, to create Independent HP control. Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/hda/patch_via.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
index b289abf0db55..dbc862e4ff13 100644
--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -1915,6 +1915,12 @@ static int via_auto_create_hp_ctls(struct hda_codec *codec, hda_nid_t pin)
&spec->hp_path)) {
spec->hp_dac_nid = spec->hp_path.path[0];
spec->hp_indep_shared = true;
+ } else if (spec->multiout.dac_nids[HDA_CLFE] &&
+ parse_output_path(codec, pin,
+ spec->multiout.dac_nids[HDA_CLFE],
+ &spec->hp_path)) {
+ spec->hp_dac_nid = spec->hp_path.path[0];
+ spec->hp_indep_shared = true;
}
if (!parse_output_path(codec, pin, spec->multiout.dac_nids[HDA_FRONT],