summaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorEldad Zack <eldad@fogrefinery.com>2013-10-06 22:31:09 +0200
committerTakashi Iwai <tiwai@suse.de>2013-10-07 10:55:14 +0200
commit239b9f7990873d851335ed23fa091ce1484a5bcc (patch)
tree53fc931d4089dc91600b67d43f9db2d677653337 /sound/usb
parent26de5d0a8df0817a58422f6ad43019c47716ce1f (diff)
downloadop-kernel-dev-239b9f7990873d851335ed23fa091ce1484a5bcc.zip
op-kernel-dev-239b9f7990873d851335ed23fa091ce1484a5bcc.tar.gz
ALSA: usb-audio: don't deactivate URBs on in-use EP
If an endpoint in use, its associated URBs should not be deactivated. Signed-off-by: Eldad Zack <eldad@fogrefinery.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/endpoint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c
index 5dd51af..e84732c 100644
--- a/sound/usb/endpoint.c
+++ b/sound/usb/endpoint.c
@@ -959,12 +959,12 @@ int snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep)
if (!ep)
return -EINVAL;
- deactivate_urbs(ep, true);
- wait_clear_urbs(ep);
-
if (ep->use_count != 0)
return 0;
+ deactivate_urbs(ep, true);
+ wait_clear_urbs(ep);
+
clear_bit(EP_FLAG_ACTIVATED, &ep->flags);
return 0;
OpenPOWER on IntegriCloud