OSDN Git Service

ALSA: hda: Allow model option to specify PCI SSID alias
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Aug 2021 07:37:21 +0000 (09:37 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Aug 2021 08:59:13 +0000 (10:59 +0200)
commita235d5b8e550fac7520410440bcc8003fb4cf8d0
tree9cdc1af4aacff1959b02deb16fc298c89400eec4
parent73355ddd87758865fde6c97b96298ddcd44fdc3b
ALSA: hda: Allow model option to specify PCI SSID alias

There are tons of quirks for HD-audio and many of them are without
model string, hence it's not trivial to apply the same quirk for a new
device.  This patch makes it easier: namely, the model string accepts
a form as "XXXX:YYYY" (a pair of hex numbers of the subsystem-vendor
and subsystem-device IDs), to specify the alias of PCI (or codec)
SSID.  e.g. passing model=1234:abcd would apply the quirk that matches
with the given SSID 1234:abcd instead of the actual SSID.

Link: https://lore.kernel.org/r/20210823073722.14873-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_auto_parser.c