ALSA: atiixp: Fix unlocked snd_pcm_stop() call
snd_pcm_stop() must be called in the PCM substream lock context. Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
60478295d6
commit
cc7282b8d5
|
@ -689,7 +689,9 @@ static void snd_atiixp_xrun_dma(struct atiixp *chip, struct atiixp_dma *dma)
|
|||
if (! dma->substream || ! dma->running)
|
||||
return;
|
||||
snd_printdd("atiixp: XRUN detected (DMA %d)\n", dma->ops->type);
|
||||
snd_pcm_stream_lock(dma->substream);
|
||||
snd_pcm_stop(dma->substream, SNDRV_PCM_STATE_XRUN);
|
||||
snd_pcm_stream_unlock(dma->substream);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -638,7 +638,9 @@ static void snd_atiixp_xrun_dma(struct atiixp_modem *chip,
|
|||
if (! dma->substream || ! dma->running)
|
||||
return;
|
||||
snd_printdd("atiixp-modem: XRUN detected (DMA %d)\n", dma->ops->type);
|
||||
snd_pcm_stream_lock(dma->substream);
|
||||
snd_pcm_stop(dma->substream, SNDRV_PCM_STATE_XRUN);
|
||||
snd_pcm_stream_unlock(dma->substream);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue