]> git.baikalelectronics.ru Git - kernel.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)
commitd6a2bf1dcd9a393943c0baa2727e047bc9b7fb66
treedee5578395b730a58372ac029500673af74414e4
parentaefac7f491e7ec6b2e3dc5b0139d3e4a3cc32929
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 37495a6e 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