diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-10-17 04:09:32 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-23 02:04:30 -0400 |
commit | 53eb1b85402f108d5151338cff4430f30fd9727f (patch) | |
tree | aa76029eba230ec2c0df75d325f02c5988f297cd /sound | |
parent | 9823adf632c57e9728d651707abd324eb4454eb9 (diff) |
[ALSA] hda-codec - Fix AD1986A Lenovo auto-mute
The jack detection bit on AD1986A Lenovo N100 seems inverse from
the standard definition. Now fixed the detection properly.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_analog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 54cfd4526d2..9bf38f92ba7 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c | |||
@@ -612,7 +612,8 @@ static void ad1986a_hp_automute(struct hda_codec *codec) | |||
612 | unsigned int present; | 612 | unsigned int present; |
613 | 613 | ||
614 | present = snd_hda_codec_read(codec, 0x1a, 0, AC_VERB_GET_PIN_SENSE, 0); | 614 | present = snd_hda_codec_read(codec, 0x1a, 0, AC_VERB_GET_PIN_SENSE, 0); |
615 | spec->jack_present = (present & 0x80000000) != 0; | 615 | /* Lenovo N100 seems to report the reversed bit for HP jack-sensing */ |
616 | spec->jack_present = !(present & 0x80000000); | ||
616 | ad1986a_update_hp(codec); | 617 | ad1986a_update_hp(codec); |
617 | } | 618 | } |
618 | 619 | ||