1
0
Fork 0

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>
hifive-unleashed-5.1
Eldad Zack 2013-10-06 22:31:09 +02:00 committed by Takashi Iwai
parent 26de5d0a8d
commit 239b9f7990
1 changed files with 3 additions and 3 deletions

View File

@ -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;