ALSA: usb-audio: Factor out the implicit feedback quirk code
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 08:53:43 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 14:17:00 +0000 (15:17 +0100)
commit9fddc15e803945a744f357a4d1c94301e1ed6681
tree894bd4cff83ff2dbc8672fa70e5a4261da47d7a3
parent6234fdc1cede3c1deda8324bdbb8274c0f4ff192
ALSA: usb-audio: Factor out the implicit feedback quirk code

The code dealing with the implicit feedback mode grew recently, and
it's becoming messy.  As we receive more and more devices that need
the similar handling, it's better to be processed through a table
instead of the open code.

This patch moves the code that is relevant with parsing the implicit
feedback mode and some helpers into another file, implicit.c.  The
detection and the setup of the implicit feedback sync EPs are
rewritten to use the ID/class matching table instead.

There should be no functional changes.

Tested-by: Keith Milner <kamilner@superlative.org>
Tested-by: Dylan Robinson <dylan_robinson@motu.com>
Link: https://lore.kernel.org/r/20201123085347.19667-38-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/Makefile
sound/usb/implicit.c [new file with mode: 0644]
sound/usb/implicit.h [new file with mode: 0644]
sound/usb/pcm.c