Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53eb1b85 authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela
Browse files

[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: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 9823adf6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
}