Skip to content

Commit 61be2b9

Browse files
committed
ASoC: s6000: Fix unlocked snd_pcm_stop() call
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>
1 parent 5711857 commit 61be2b9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎sound/soc/s6000/s6000-pcm.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ static irqreturn_t s6000_pcm_irq(int irq, void *data)
128128
substream->runtime &&
129129
snd_pcm_running(substream)) {
130130
dev_dbg(pcm->dev, "xrun\n");
131+
snd_pcm_stream_lock(substream);
131132
snd_pcm_stop(substream, SNDRV_PCM_STATE_XRUN);
133+
snd_pcm_stream_unlock(substream);
132134
ret = IRQ_HANDLED;
133135
}
134136

0 commit comments

Comments
 (0)