From: Takashi Iwai Date: Tue, 15 Jan 2013 07:45:33 +0000 (+0100) Subject: ALSA: hda - Check pincap while parsing the configuration X-Git-Tag: v3.9-rc1~129^2~70^2~38^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52fd5cbc9bef6a2e20bfbdae771498ef97c67b34;p=pandora-kernel.git ALSA: hda - Check pincap while parsing the configuration Sometimes (or rather often) BIOS sets the pin default configurations obviously wrongly. Looking through these failures, one common pattern is to enable some dead pins that are usually marked as speaker pins. In such a case, we can skip them if the pins don't have the output capability. In this patch, add a check for the valid pin cap bit for each parsed pin, and filter out when it's invalid. The fix was originally suggested by Raymond Yau. Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed