Skip to content

Commit

Permalink
ALSA: usb-audio: clear SUBSTREAM_FLAG_SYNC_EP_STARTED on error
Browse files Browse the repository at this point in the history
If setting the interface fails, the SUBSTREAM_FLAG_SYNC_EP_STARTED
should be cleared.

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Eldad Zack authored and Takashi Iwai committed Oct 7, 2013
1 parent 9b7c552 commit 06613f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/usb/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 06613f5

Please sign in to comment.