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)
commit5fd255f4fe9707b5274e60d94d4aa64536f67ec3
tree0439d9d9b23cd8d3aef4ccb6db5187b4b1b9e208
parent7ec827b9465c427511f05bab02dddbcfdd4ecc53
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