]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit451618a30d58f0274c923d4724a8866b135de01f
treeaf46db60939f5b822042db7083f30fe8a9e084cf
parent2cbc5bc9c1d5ea3d63c2155d3a7ec1e9d58a5dc1
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