Skip to content

Commit

Permalink
ALSA: hda - Fix Independent-HP detection on VT2002P/1802/1812 codecs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lydia Wang authored and Takashi Iwai committed Jul 8, 2011
1 parent 5c9a561 commit a2a870c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit a2a870c

Please sign in to comment.