]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Check pincap while parsing the configuration
authorTakashi Iwai <tiwai@suse.de>
Tue, 15 Jan 2013 07:45:33 +0000 (08:45 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Jan 2013 07:49:09 +0000 (08:49 +0100)
commitf26c35aca9ab9b94371dc37f5c606c71b2633ce0
treeba12a8ae618f52bcc6f07c64e18a85cb79e1a6d2
parentd057a1fe669b83de727e1e2fbbb1b346520ea7b6
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 <tiwai@suse.de>
sound/pci/hda/hda_auto_parser.c