From d7dd8909eaf2e733e145ca6a02f9582f544fb6e1 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 17 Oct 2007 10:09:32 +0200 Subject: [PATCH] --- yaml --- r: 72168 b: refs/heads/master c: 53eb1b85402f108d5151338cff4430f30fd9727f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/patch_analog.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 3e514515ba36..c10eaf947080 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9823adf632c57e9728d651707abd324eb4454eb9 +refs/heads/master: 53eb1b85402f108d5151338cff4430f30fd9727f diff --git a/trunk/sound/pci/hda/patch_analog.c b/trunk/sound/pci/hda/patch_analog.c index 54cfd4526d20..9bf38f92ba74 100644 --- a/trunk/sound/pci/hda/patch_analog.c +++ b/trunk/sound/pci/hda/patch_analog.c @@ -612,7 +612,8 @@ static void ad1986a_hp_automute(struct hda_codec *codec) unsigned int present; present = snd_hda_codec_read(codec, 0x1a, 0, AC_VERB_GET_PIN_SENSE, 0); - spec->jack_present = (present & 0x80000000) != 0; + /* Lenovo N100 seems to report the reversed bit for HP jack-sensing */ + spec->jack_present = !(present & 0x80000000); ad1986a_update_hp(codec); }