X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=sound%2Fpci%2Fatiixp.c;h=f6dec3ea371fa8c8e4e580af71d980e4c6595545;hb=cc7282b8d5abbd48c81d1465925d464d9e3eaa8f;hp=fe4c61bdb8bac5764556bce3da8301653042d2c3;hpb=60478295d6876619f8f47f6d1a5c25eaade69ee3;p=firefly-linux-kernel-4.4.55.git diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index fe4c61bdb8ba..f6dec3ea371f 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c @@ -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); } /*