ALSA: usb-audio: Track implicit fb sync endpoint in audioformat list
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 08:53:14 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 14:12:26 +0000 (15:12 +0100)
commitf6581c0e5d297cc1e0d7eb7c2603097f532e629a
treeaf46db60939f5b822042db7083f30fe8a9e084cf
parente93e890e16ef5a0605b7cdc52b3bde50d88d7207
ALSA: usb-audio: Track implicit fb sync endpoint in audioformat list

Instead of parsing and evaluating the sync endpoint and the implicit
feedback mode at each time the audio stream is opened, let's parse it
once at the probe time, as the all needed information can be obtained
statically from the descriptor or from the quirk.

This patch extends audioformat struct to record the sync endpoint,
interface and altsetting as well as the implicit feedback flag, which
are filled at parsing the streams.  Then, set_sync_endpoint() is much
simplified just to follow the already parsed data.

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