Re: [PATCH] ALSA: usb-audio: Refine string-descriptor-based quirk matching

From: Takashi Iwai

Date: Thu Mar 05 2026 - 14:50:53 EST


On Thu, 05 Mar 2026 18:46:39 +0100,
Rong Zhang wrote:
>
> 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@xxxxxxxxxxxxxxxxxxxxxx>
> Link: https://lore.kernel.org/r/b59da54a-9c80-4212-a337-c5ea98da52d1@xxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Rong Zhang <i@xxxxxxxx>

Thanks, applied now.


Takashi