]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - sound/usb/endpoint.c
ALSA: usb-audio: Apply the sample rate quirk for Bose Companion 5
[linux.git] / sound / usb / endpoint.c
index a2ab8e8d3a93074536ffa29010e71c39bbdbb3f1..4a9a2f6ef5a45f63ec8622b580430174d17ac43b 100644 (file)
@@ -388,6 +388,9 @@ static void snd_complete_urb(struct urb *urb)
                }
 
                prepare_outbound_urb(ep, ctx);
+               /* can be stopped during prepare callback */
+               if (unlikely(!test_bit(EP_FLAG_RUNNING, &ep->flags)))
+                       goto exit_clear;
        } else {
                retire_inbound_urb(ep, ctx);
                /* can be stopped during retire callback */