]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: hda - Re-enable the check NO_PRESENCE misc bit
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Nov 2011 11:36:46 +0000 (12:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Nov 2011 11:36:46 +0000 (12:36 +0100)
commit2f451d2a2a44b66586b803763068195088f9ccd4
treedee5578395b730a58372ac029500673af74414e4
parent9e226b4b7e77215ca70461edc33800f6c1ba63d3
ALSA: hda - Re-enable the check NO_PRESENCE misc bit

We disabled the check of NO_PRESENCE bit of the default pin-config
in commit f4419172 temporarily.  One problem was that the first
implementation was wrong -- the bit after the shift must be checked.
However, this would still give many regressions on machines with broken
BIOS.  They set this bit wrongly even on active pins.

A workaround is to check whether all pins contain this bit.  As far as
I've checked, broken BIOSen set this bit on all pins, no matter whether
active or not.  In such a case, the driver should ignore this bit check.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_local.h