--- alsa-driver-hg20070908/alsa-kernel/pci/hda/patch_analog.c 2007-09-07 02:00:08.000000000 +0200 +++ alsa-driver-hg20070908-patched/alsa-kernel/pci/hda/patch_analog.c 2007-09-10 13:23:25.000000000 +0200 @@ -612,7 +612,7 @@ unsigned int present; present = snd_hda_codec_read(codec, 0x1a, 0, AC_VERB_GET_PIN_SENSE, 0); - spec->jack_present = (present & 0x80000000) != 0; + spec->jack_present = (present & 0x80000000) == 0; ad1986a_update_hp(codec); }