mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 02:02:28 +09:00
ASoC: atmel: Fix unlocked snd_pcm_stop() call
commit 571185717f upstream.
snd_pcm_stop() must be called in the PCM substream lock context.
Acked-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d23067e924
commit
b5aa3fc573
@@ -81,7 +81,9 @@ static void atmel_pcm_dma_irq(u32 ssc_sr,
|
||||
|
||||
/* stop RX and capture: will be enabled again at restart */
|
||||
ssc_writex(prtd->ssc->regs, SSC_CR, prtd->mask->ssc_disable);
|
||||
snd_pcm_stream_lock(substream);
|
||||
snd_pcm_stop(substream, SNDRV_PCM_STATE_XRUN);
|
||||
snd_pcm_stream_unlock(substream);
|
||||
|
||||
/* now drain RHR and read status to remove xrun condition */
|
||||
ssc_readx(prtd->ssc->regs, SSC_RHR);
|
||||
|
||||
Reference in New Issue
Block a user