projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5be1efb
)
ALSA: pxa2xx: Fix unlocked snd_pcm_stop() call
author
Takashi Iwai
<tiwai@suse.de>
Thu, 11 Jul 2013 15:59:33 +0000
(17:59 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 15 Jul 2013 19:25:13 +0000
(21:25 +0200)
snd_pcm_stop() must be called in the PCM substream lock context.
Cc: <stable@vger.kernel.org>
Acked-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/arm/pxa2xx-pcm-lib.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/arm/pxa2xx-pcm-lib.c
b/sound/arm/pxa2xx-pcm-lib.c
index 76e0d56950751a8a60074d5a9a7df6232a1ee472..823359ed95e16a0969ee6c28843a4777387d3561 100644
(file)
--- a/
sound/arm/pxa2xx-pcm-lib.c
+++ b/
sound/arm/pxa2xx-pcm-lib.c
@@
-166,7
+166,9
@@
void pxa2xx_pcm_dma_irq(int dma_ch, void *dev_id)
} else {
printk(KERN_ERR "%s: DMA error on channel %d (DCSR=%#x)\n",
rtd->params->name, dma_ch, dcsr);
+ snd_pcm_stream_lock(substream);
snd_pcm_stop(substream, SNDRV_PCM_STATE_XRUN);
+ snd_pcm_stream_unlock(substream);
}
}
EXPORT_SYMBOL(pxa2xx_pcm_dma_irq);