]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f8d4ade76f8bd741611ce575ffc2e217009405f
tree894bd4cff83ff2dbc8672fa70e5a4261da47d7a3
parentf12aea40a6cfeccba3fa627b83efdb7047ffd7d4
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