Commit ca32b5c3 authored by Takashi Iwai's avatar Takashi Iwai Committed by Greg Kroah-Hartman

ALSA: hda - Always set HP pin in unsol handler for STAC/IDT codecs

commit 7bff172a upstream.

A bug report with an old Sony laptop showed that we can't rely on BIOS
setting the pins of headphones but the driver should set always by
itself.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9c214308
...@@ -4589,7 +4589,7 @@ static void stac92xx_hp_detect(struct hda_codec *codec) ...@@ -4589,7 +4589,7 @@ static void stac92xx_hp_detect(struct hda_codec *codec)
unsigned int val = AC_PINCTL_OUT_EN | AC_PINCTL_HP_EN; unsigned int val = AC_PINCTL_OUT_EN | AC_PINCTL_HP_EN;
if (no_hp_sensing(spec, i)) if (no_hp_sensing(spec, i))
continue; continue;
if (presence) if (1 /*presence*/)
stac92xx_set_pinctl(codec, cfg->hp_pins[i], val); stac92xx_set_pinctl(codec, cfg->hp_pins[i], val);
#if 0 /* FIXME */ #if 0 /* FIXME */
/* Resetting the pinctl like below may lead to (a sort of) regressions /* Resetting the pinctl like below may lead to (a sort of) regressions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment