summaryrefslogtreecommitdiff
path: root/sound/usb/line6/driver.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 15:15:54 (GMT)
committerTakashi Iwai <tiwai@suse.de>2015-01-20 07:18:44 (GMT)
commit5a4753112afc4d418ec6023bac757a9ec3eb7a32 (patch)
tree10c14a44a9d96003746c68968d2006ae98d10a49 /sound/usb/line6/driver.c
parent31ca192139a152fcc550b9ebfb0e2d2d6247585e (diff)
downloadlinux-5a4753112afc4d418ec6023bac757a9ec3eb7a32.tar.xz
ALSA: line6: Sync PCM stop at disconnect
Call line6_pcm_disconnect() at disconnect to make sure that all URBs are cleared. Also reduce the superfluous snd_pcm_stop() calls from the function (and remove the unused function) since the streams are guaranteed to be stopped at this point via snd_card_disconnect(). Tested-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/driver.c')
-rw-r--r--sound/usb/line6/driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c
index f222d9f..1193d16 100644
--- a/sound/usb/line6/driver.c
+++ b/sound/usb/line6/driver.c
@@ -670,6 +670,8 @@ void line6_disconnect(struct usb_interface *interface)
dev_err(line6->ifcdev, "driver bug: inconsistent usb device\n");
snd_card_disconnect(line6->card);
+ if (line6->line6pcm)
+ line6_pcm_disconnect(line6->line6pcm);
if (line6->disconnect)
line6->disconnect(interface);