mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
ALSA: hda - Add missing EAPD initialization for VIA codecs
If the output pin is used and EAPD capability is present, turn on the EAPD bit. This fixes the silent output problem on ASUS laptops with VT1708S codec. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
55d1d6c1ef
commit
d3a11e601a
1 changed files with 3 additions and 0 deletions
|
@ -320,6 +320,9 @@ static void via_auto_set_output_and_unmute(struct hda_codec *codec,
|
|||
pin_type);
|
||||
snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_AMP_GAIN_MUTE,
|
||||
AMP_OUT_UNMUTE);
|
||||
if (snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD)
|
||||
snd_hda_codec_write(codec, nid, 0,
|
||||
AC_VERB_SET_EAPD_BTLENABLE, 0x02);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue