diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-03-22 18:57:50 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-03-22 18:57:50 +0000 |
commit | 00d06631c97e7909cb1540afb9a422dc5e04b901 (patch) | |
tree | ff9dc99d87947fc7254643551c5f717bf11f115d /target/linux | |
parent | 73c0188609b79684e275f394ec18fd1d3ce62f27 (diff) | |
download | master-187ad058-00d06631c97e7909cb1540afb9a422dc5e04b901.tar.gz master-187ad058-00d06631c97e7909cb1540afb9a422dc5e04b901.tar.bz2 master-187ad058-00d06631c97e7909cb1540afb9a422dc5e04b901.zip |
[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
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/xburst/files-2.6.32/sound/soc/jz4740/jz4740-pcm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/xburst/files-2.6.32/sound/soc/jz4740/jz4740-pcm.c b/target/linux/xburst/files-2.6.32/sound/soc/jz4740/jz4740-pcm.c index 4a4de195a8..3ccc652a0b 100644 --- a/target/linux/xburst/files-2.6.32/sound/soc/jz4740/jz4740-pcm.c +++ b/target/linux/xburst/files-2.6.32/sound/soc/jz4740/jz4740-pcm.c @@ -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; } |