Commit 16ffe32c authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix line-out jack handling with STAC/IDT codec

When the line-out jack is plugged/unplugged, the driver needs to check
the headphone plug, not only the line-out jack itself.  Otherwise the
headphone or the speaker may be wrongly muted/unmuted.

As a result, both STAC_HP_EVENT and STAC_LO_EVENT need to call the
same function, stac92xx_hp_detect().
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 15cfa2b3
...@@ -4782,10 +4782,8 @@ static void stac92xx_unsol_event(struct hda_codec *codec, unsigned int res) ...@@ -4782,10 +4782,8 @@ static void stac92xx_unsol_event(struct hda_codec *codec, unsigned int res)
switch (event->type) { switch (event->type) {
case STAC_HP_EVENT: case STAC_HP_EVENT:
stac92xx_hp_detect(codec);
break;
case STAC_LO_EVENT: case STAC_LO_EVENT:
stac92xx_line_out_detect(codec, 0); stac92xx_hp_detect(codec);
break; break;
case STAC_MIC_EVENT: case STAC_MIC_EVENT:
stac92xx_mic_detect(codec); stac92xx_mic_detect(codec);
......
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