]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3583e4408ec762f94cc43b2422923b0c13663452
tree93867d023ae93f8ca22975e904f719f99302b00e
parent6c0731840ae5358ea4151e266c043e1f989ceb16
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