projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b7c552
)
ALSA: usb-audio: clear SUBSTREAM_FLAG_SYNC_EP_STARTED on error
author
Eldad Zack
<eldad@fogrefinery.com>
Sun, 6 Oct 2013 20:31:11 +0000
(22:31 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 7 Oct 2013 09:00:23 +0000
(11:00 +0200)
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>
sound/usb/pcm.c
patch
|
blob
|
history
diff --git
a/sound/usb/pcm.c
b/sound/usb/pcm.c
index 1a9a01853688f9895ac3c80f04ec38735f1aa8f1..0c1a95dd55382f659a5aea7e8f762e6f9e4e88ea 100644
(file)
--- 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,