]> Pileus Git - ~andy/linux/blobdiff - sound/pci/atiixp_modem.c
Merge tag 'msi-3.12' of git://git.infradead.org/linux-mvebu into next/drivers
[~andy/linux] / sound / pci / atiixp_modem.c
index cf29b9a1d65d71dbcc0608b1db89bef5273a199b..289563ecb6dd704e0a3f89d81ca19afef63cf98a 100644 (file)
@@ -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);
 }
 
 /*