X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=sound%2Fpci%2Fatiixp.c;h=6faa173316f65b95820b83a211aa30a35e059f11;hp=537e0a2cc68a99ed5bb8c7c6da7eae6e046b33cb;hb=4cecd7e369e1b252db1d64451462221b362eed1c;hpb=b2f9452bd5234d573898bbda52a410b154f8f510 diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index 537e0a2cc68a..6faa173316f6 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include @@ -688,7 +688,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); } /*