ALSA: usb-audio: Add generic implicit fb parsing
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 08:53:44 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 14:17:11 +0000 (15:17 +0100)
commit83b7dcbc51c930fc2079ab6c6fc9d719768321f1
tree22d06b1e345b8869262fbdc3913f05003a54d756
parent9fddc15e803945a744f357a4d1c94301e1ed6681
ALSA: usb-audio: Add generic implicit fb parsing

This patch extends the implicit feedback mode parser code to check the
description more generically, so that the quirk entries can be added
without the explicit EP and interface numbers.  The search is done for
the next and the previous interface of the given altset, and if both
entries are ASYNC mode and the direction matches, it just takes as the
sync endpoint.  The generic parser is applicable only for the playback
stream.

As of now, only a few M-Audio devices have been converted to use this
mode.

Tested-by: Keith Milner <kamilner@superlative.org>
Tested-by: Dylan Robinson <dylan_robinson@motu.com>
Link: https://lore.kernel.org/r/20201123085347.19667-39-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/implicit.c