summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorRong Zhang <i@rong.moe>2026-03-06 01:46:39 +0800
committerTakashi Iwai <tiwai@suse.de>2026-03-05 20:49:10 +0100
commit9558a2cbec2eb034ae7d570ff56ad74f9a918177 (patch)
tree8c2a4037201df236cf38f60accbd995ca7e403c3 /tools/perf/scripts/python/bin
parentb364a0d23cae157691cde2c0137998d66b45b703 (diff)
ALSA: usb-audio: Refine string-descriptor-based quirk matching
Remove snd_usb_get_string() and use the manufacturer and product strings stored in struct usb_device directly to match quirk table entries. Their NULLity can be checked to determine if the device has no these strings. This simplifies the code a lot. Meanwhile, allow quirk table entries to match "no string" explicitly, and add appropriate comments to show the expected usages of DEVICE_STRING_FLG() and VENDOR_STRING_FLG(). These changes are tiny and doesn't form another separate patch, so that back-and-forth changes can be avoided. Suggested-by: Terry Junge <linuxsound@cosmicgizmosystems.com> Link: https://lore.kernel.org/r/b59da54a-9c80-4212-a337-c5ea98da52d1@cosmicgizmosystems.com Signed-off-by: Rong Zhang <i@rong.moe> Link: https://patch.msgid.link/20260305174711.1106324-1-i@rong.moe Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions