[PATCH] ALSA: usb-audio: Use the new macro for HP Dock rename quirks

Takashi Iwai tiwai at suse.de
Mon Jun 8 10:44:05 CEST 2020


On Mon, 08 Jun 2020 10:37:12 +0200,
Jaroslav Kysela wrote:
> 
> Dne 08. 06. 20 v 9:15 Takashi Iwai napsal(a):
> > Replace the open-code with the new QUIRK_DEVICE_PROFILE() macro for
> > simplicity.
> >
> > Fixes: 0c5086f56999 ("ALSA: usb-audio: Add vendor, product and profile name for HP Thunderbolt Dock")
> > Signed-off-by: Takashi Iwai <tiwai at suse.de>
> > ---
> 
> Takashi, could we export the profile (hint) for new USB cards via the
> components string - snd_component_add()? The long name seems not
> appropriate for this. It's a GUI string (which is mangled now).

It's possible, and maybe we should move to it, but we'd need to
provide in card->longname for now because the component support in
user-space side isn't in major releases yet.  The longname is ugly,
but that's the only way that works stably right now.

Also, we need a common helper function for adding the component string
in the kernel side, too, not specific to USB-audio.


thanks,

Takashi


More information about the Alsa-devel mailing list