From: Eldad Zack Date: Sun, 6 Oct 2013 20:31:11 +0000 (+0200) Subject: ALSA: usb-audio: clear SUBSTREAM_FLAG_SYNC_EP_STARTED on error X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=06613f547a4f62c2201f70b24807d9edd4d733b0;p=linux-beck.git ALSA: usb-audio: clear SUBSTREAM_FLAG_SYNC_EP_STARTED on error If setting the interface fails, the SUBSTREAM_FLAG_SYNC_EP_STARTED should be cleared. Signed-off-by: Eldad Zack Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index 1a9a01853688..0c1a95dd5538 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -246,6 +246,7 @@ static int start_endpoints(struct snd_usb_substream *subs, bool can_sleep) subs->sync_endpoint->iface, subs->sync_endpoint->alt_idx); if (err < 0) { + clear_bit(SUBSTREAM_FLAG_SYNC_EP_STARTED, &subs->flags); snd_printk(KERN_ERR "%d:%d:%d: cannot set interface (%d)\n", subs->dev->devnum,