Skip to content

Commit

Permalink
ALSA: hda - Fix line-out jack handling with STAC/IDT codec
Browse files Browse the repository at this point in the history
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: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Aug 4, 2009
1 parent 15cfa2b commit 16ffe32
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -4782,10 +4782,8 @@ static void stac92xx_unsol_event(struct hda_codec *codec, unsigned int res)

switch (event->type) {
case STAC_HP_EVENT:
stac92xx_hp_detect(codec);
break;
case STAC_LO_EVENT:
stac92xx_line_out_detect(codec, 0);
stac92xx_hp_detect(codec);
break;
case STAC_MIC_EVENT:
stac92xx_mic_detect(codec);
Expand Down

0 comments on commit 16ffe32

Please sign in to comment.