X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=target%2Flinux%2Fxburst%2Ffiles-2.6.32%2Fsound%2Fsoc%2Fjz4740%2Fjz4740-pcm.c;h=3ccc652a0b8ed5a54a9ad9b33c6a86b1d7a55dee;hp=4a4de195a879e7bb3d592ea8066a074b530ca60e;hb=113249c0a943849326e437dedcd62b2128bc06b1;hpb=124c6d16d7692446d6ff6bbae6f10f32eafcc66e 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 4a4de195a..3ccc652a0 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; }