Skip to content

Commit 5576c4f

Browse files
committed
ALSA: core: Fix SSID quirk lookup for subvendor=0
Some weird devices set the codec SSID vendor ID 0, and snd_pci_quirk_lookup_id() loop aborts at the point although it should still try matching with the SSID device ID. This resulted in a missing quirk for some old Macs. Fix the loop termination condition to check both subvendor and subdevice. Fixes: 73355dd ("ALSA: hda: Code refactoring snd_hda_pick_fixup()") Cc: <[email protected]> BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215495 Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 5762f98 commit 5576c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/core/misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ snd_pci_quirk_lookup_id(u16 vendor, u16 device,
112112
{
113113
const struct snd_pci_quirk *q;
114114

115-
for (q = list; q->subvendor; q++) {
115+
for (q = list; q->subvendor || q->subdevice; q++) {
116116
if (q->subvendor != vendor)
117117
continue;
118118
if (!q->subdevice ||

0 commit comments

Comments
 (0)