ALSA: hda/realtek: More robust component matching for CS35L41
authorTakashi Iwai <tiwai@suse.de>
Fri, 30 Sep 2022 08:48:10 +0000 (10:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 30 Sep 2022 08:48:44 +0000 (10:48 +0200)
commit35a1744423743247026668e2323d1b932583fc2a
tree538e89c23073c9fa050d4b1988932a1d1f6464e2
parent225f6e1bc151978041595c7d2acaded3aac41f54
ALSA: hda/realtek: More robust component matching for CS35L41

As the previous commit implies, a system may have a different SPI bus
number that is embedded in the device string.  And, assuming the fixed
bus number is rather fragile; it may be assigned differently depending
on the configuration or on the boot environment.  Once when a bus
number change happens, the binding fails, resulting in the silence.

This patch tries to make the matching a bit more relaxed, allowing to
bind with a different bus number (or without it).  So the previous
fix, the introduction of ALC245_FIXUP_CS35L41_SPI1_2 fixup became
superfluous, and this is unified to ALC245_FIXUP_CS35L41_SPI_2.

Fixes: 225f6e1bc151 ("ALSA: hda/realtek: Add quirk for HP Zbook Firefly 14 G9 model")
Link: https://lore.kernel.org/r/20220930084810.10435-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c