Skip to content

Commit

Permalink
ASoC: s6000: Fix unlocked snd_pcm_stop() call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Jul 15, 2013
1 parent 5711857 commit 61be2b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/s6000/s6000-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ static irqreturn_t s6000_pcm_irq(int irq, void *data)
substream->runtime &&
snd_pcm_running(substream)) {
dev_dbg(pcm->dev, "xrun\n");
snd_pcm_stream_lock(substream);
snd_pcm_stop(substream, SNDRV_PCM_STATE_XRUN);
snd_pcm_stream_unlock(substream);
ret = IRQ_HANDLED;
}

Expand Down

0 comments on commit 61be2b9

Please sign in to comment.