]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Avoid doubly initialization for implicit fb
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 08:53:19 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 14:13:15 +0000 (15:13 +0100)
commit1ffbf585b1d026164e93b2235484f5b4411bb638
tree0439d9d9b23cd8d3aef4ccb6db5187b4b1b9e208
parentf5cb1c2a97941c3601dd7a3240d94dd8c37074cf
ALSA: usb-audio: Avoid doubly initialization for implicit fb

The implicit feedback mode initializes both the main data stream and
the sync data stream.  When a sync stream was already opened, this
would result in the doubly initialization and might screw up things.

Add the check of already opened sync streams and skip the unnecessary
initialization.

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