Commit 239b9f79 authored by Eldad Zack's avatar Eldad Zack Committed by Takashi Iwai
Browse files

ALSA: usb-audio: don't deactivate URBs on in-use EP

If an endpoint in use, its associated URBs should not be

Signed-off-by: default avatarEldad Zack <>
Signed-off-by: default avatarTakashi Iwai <>
parent 26de5d0a
......@@ -959,12 +959,12 @@ int snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep)
if (!ep)
return -EINVAL;
deactivate_urbs(ep, true);
if (ep->use_count != 0)
return 0;
deactivate_urbs(ep, true);
clear_bit(EP_FLAG_ACTIVATED, &ep->flags);
return 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment