diff options
author | Eldad Zack <eldad@fogrefinery.com> | 2013-10-07 00:31:09 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-07 12:55:14 +0400 |
commit | 239b9f7990873d851335ed23fa091ce1484a5bcc (patch) | |
tree | 53fc931d4089dc91600b67d43f9db2d677653337 /sound/usb/endpoint.c | |
parent | 26de5d0a8df0817a58422f6ad43019c47716ce1f (diff) | |
download | linux-239b9f7990873d851335ed23fa091ce1484a5bcc.tar.xz |
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/endpoint.c')
-rw-r--r-- | sound/usb/endpoint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index 5dd51af0525a..e84732c874cb 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; |