]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: usb-audio: Support string-descriptor-based quirk table entry
authorRong Zhang <i@rong.moe>
Tue, 3 Mar 2026 19:47:59 +0000 (03:47 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 4 Mar 2026 11:05:57 +0000 (12:05 +0100)
commit30f68d090c0ee55a7c9b422e65d43b9ff68434c8
treef6ea3ba86391fd97d46bc9be0349e0177d0ed44b
parent52dc4b190a31d5a5f43aadc51f5297048bfb6d52
ALSA: usb-audio: Support string-descriptor-based quirk table entry

Some quirky devices do not have a unique VID/PID. Matching them using
DEVICE_FLG() or VENDOR_FLG() may result in conflicts.

Add two new macros DEVICE_STRING_FLG() and VENDOR_STRING_FLG() to match
USB string descriptors (manufacturer and/or product) in addition to VID
and/or PID, so that we can deconflict these devices safely.

No functional change intended.

Signed-off-by: Rong Zhang <i@rong.moe>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260303194805.266158-5-i@rong.moe
sound/usb/quirks.c