1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-27 00:51:07 +02:00

[xburst] sound jz4740_pcm: Set dma channel to NULL after it has been freed,

because hw_free can be called multiple times aswell.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20373 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
lars 2010-03-22 18:57:50 +00:00
parent 124c6d16d7
commit 113249c0a9

View File

@ -136,8 +136,10 @@ static int jz4740_pcm_hw_free(struct snd_pcm_substream *substream)
struct jz4740_runtime_data *prtd = substream->runtime->private_data;
snd_pcm_set_runtime_buffer(substream, NULL);
if (prtd->dma)
if (prtd->dma) {
jz4740_dma_free(prtd->dma);
prtd->dma = NULL;
}
return 0;
}