ALSA: hda - Fix Independent-HP detection on VT2002P/1802/1812 codecs
authorLydia Wang <lydiawang@viatech.com.cn>
Fri, 8 Jul 2011 06:04:33 +0000 (14:04 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 8 Jul 2011 06:20:05 +0000 (08:20 +0200)
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>
sound/pci/hda/patch_via.c

index b289abf0db5507e0bb65b41ba252e6c27c806cc0..dbc862e4ff139d12d1c2fccd23ad407d43b07b0f 100644 (file)
@@ -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],