ALSA: hda - Skip pin capability sanity check for bogus values
authorTakashi Iwai <tiwai@suse.de>
Fri, 20 Apr 2012 11:08:40 +0000 (13:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 20 Apr 2012 11:08:40 +0000 (13:08 +0200)
commit6942c103fb4b0ce91be910a716044ac181a9c2dd
tree5b8314d357777293411e3ff9d863f4b6e52947b6
parent4740860b534e86d7db3b26cbd980bec8e4c807e8
ALSA: hda - Skip pin capability sanity check for bogus values

Some old codecs like ALC880 seem to give a bogus pin capability value 0
occasionally.  This breaks the new sanity check in snd_hda_set_pin_ctl().
Skip the sanity checks in such a case.

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