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:
e6355ad
)
staging: line6: Fix unlocked snd_pcm_stop() call
author
Takashi Iwai
<
[email protected]
>
Thu, 11 Jul 2013 16:02:38 +0000
(18:02 +0200)
committer
Takashi Iwai
<
[email protected]
>
Mon, 15 Jul 2013 19:25:14 +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]
>
drivers/staging/line6/pcm.c
patch
|
blob
|
history
diff --git
a/drivers/staging/line6/pcm.c
b/drivers/staging/line6/pcm.c
index 4795f128490636a48909b21816f4985cc66a46c0..0dd08ef51398cabe6164cb90f4280ca401fb996f 100644
(file)
--- a/
drivers/staging/line6/pcm.c
+++ b/
drivers/staging/line6/pcm.c
@@
-392,8
+392,11
@@
static int snd_line6_pcm_free(struct snd_device *device)
*/
static void pcm_disconnect_substream(struct snd_pcm_substream *substream)
{
- if (substream->runtime && snd_pcm_running(substream))
+ if (substream->runtime && snd_pcm_running(substream)) {
+ snd_pcm_stream_lock_irq(substream);
snd_pcm_stop(substream, SNDRV_PCM_STATE_DISCONNECTED);
+ snd_pcm_stream_unlock_irq(substream);
+ }
}
/*