ALSA: usb-audio: Move device rename and profile quirks to an internal table
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 Aug 2020 08:21:38 +0000 (10:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Aug 2020 09:00:45 +0000 (11:00 +0200)
commit5436f59bc5bcc27ca0244ebdb02b4228bf8b1aae
tree93867d023ae93f8ca22975e904f719f99302b00e
parentb90b925fd52c75ee7531df739d850a1f7c58ef06
ALSA: usb-audio: Move device rename and profile quirks to an internal table

So far we've added the devices that need vendor/product string renames
or the profile setup into the standard quirk table in quirks-table.h.
This table is imported into the primary USB audio device entry, hence
it's all exported for the probing so that udev and co can take a look
at it.  OTOH, for renaming or profile setup, we don't need to expose
those explicit entries because the probe itself follows the standard
way.  That said, we're exposing unnecessarily too many entries.

This patch moves such internal quirk entries into the own table, and
reduces the exported device table size.  Along with the moving items,
re-arrange the entries in the proper order.

Link: https://lore.kernel.org/r/20200817082140.20232-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c
sound/usb/quirks-table.h
sound/usb/usbaudio.h