]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Stop both endpoints properly at error
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 08:53:27 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 14:14:36 +0000 (15:14 +0100)
commitc48e9ed4b52e9455fedee723c56b208aab4d3a2e
tree338117bd31306f490d543ae740d56f34be7aa7ce
parent05ff04012b28281776c724f0024e28e77654356d
ALSA: usb-audio: Stop both endpoints properly at error

start_endpoints() may leave the data endpoint running if an error
happens at starting the sync endpoint.  We should stop both streams
properly, instead.

While we're at it, move the debug prints into the endpoint.c that is a
more suitable place.

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