ALSA: hda: Use own quirk lookup helper
authorTakashi Iwai <tiwai@suse.de>
Tue, 8 Oct 2024 12:02:29 +0000 (14:02 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Oct 2024 12:21:11 +0000 (14:21 +0200)
commit5b1913a79c3e0518d9c5db343fa9fc4edcea041f
treec962a89bbcf52d4eea3e9f8f15fe4c0c3c42ffbe
parent1ceb43eb60355eed600951248d962c107cd9ba49
ALSA: hda: Use own quirk lookup helper

For allowing the primary codec SSID matching (that works around the
conflicting PCI SSID problems), introduce a new struct hda_quirk,
which is compatible with the existing struct snd_pci_quirk along with
new helper functions and macros.

The existing snd_pci_quirk tables are replaced with hda_quirk tables
accordingly, while keeping SND_PCI_QUIRK() entry definitions as is.

This patch shouldn't bring any behavior change, just some renaming and
shifting the code.  The actual change for the codec SSID matching will
follow after this.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20241008120233.7154-2-tiwai@suse.de
sound/pci/hda/hda_auto_parser.c
sound/pci/hda/hda_local.h
sound/pci/hda/patch_analog.c
sound/pci/hda/patch_cirrus.c
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_cs8409-tables.c
sound/pci/hda/patch_cs8409.h
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_via.c