projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9538aa4
)
ALSA: usx2y: Fix unlocked snd_pcm_stop() call
author
Takashi Iwai
<
[email protected]
>
Thu, 11 Jul 2013 15:58:47 +0000
(17:58 +0200)
committer
Takashi Iwai
<
[email protected]
>
Mon, 15 Jul 2013 19:25:13 +0000
(21:25 +0200)
snd_pcm_stop() must be called in the PCM substream lock context.
Cc: <
[email protected]
>
Signed-off-by: Takashi Iwai <
[email protected]
>
sound/usb/usx2y/usbusx2yaudio.c
patch
|
blob
|
history
diff --git
a/sound/usb/usx2y/usbusx2yaudio.c
b/sound/usb/usx2y/usbusx2yaudio.c
index 4967fe9c938df0079a4f5d63881b15b627673094..63fb5219f0f8aad7a844eb1942b5cd728be678dc 100644
(file)
--- a/
sound/usb/usx2y/usbusx2yaudio.c
+++ b/
sound/usb/usx2y/usbusx2yaudio.c
@@
-273,7
+273,11
@@
static void usX2Y_clients_stop(struct usX2Ydev *usX2Y)
struct snd_usX2Y_substream *subs = usX2Y->subs[s];
if (subs) {
if (atomic_read(&subs->state) >= state_PRERUNNING) {
+ unsigned long flags;
+
+ snd_pcm_stream_lock_irqsave(subs->pcm_substream, flags);
snd_pcm_stop(subs->pcm_substream, SNDRV_PCM_STATE_XRUN);
+ snd_pcm_stream_unlock_irqrestore(subs->pcm_substream, flags);
}
for (u = 0; u < NRURBS; u++) {
struct urb *urb = subs->urb[u];