ALSA: hda - Add a new quirk match based on default pin configuration
authorDavid Henningsson <david.henningsson@canonical.com>
Mon, 26 May 2014 08:22:41 +0000 (16:22 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 26 May 2014 09:03:53 +0000 (11:03 +0200)
commit20531415adf30877296ea89fb0e534ac87f6cc71
tree78b27b039a771fd5671008cb692961092579ce0b
parentc21c8cf77f47e234b5724d24dd133dc034351327
ALSA: hda - Add a new quirk match based on default pin configuration

Normally, we match on pci ssid only. This works but needs new code
for every machine. To catch more machines in the same quirk, let's add
a new type of quirk, where we match on
 1) PCI Subvendor ID (i e, not device, just vendor)
 2) Codec ID
 3) Pin configuration default

If all these three match, we could be reasonably certain that the
quirk should apply to the machine even though it might not be the
exact same device.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_auto_parser.c
sound/pci/hda/hda_local.h