]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/soc/pxa/pxa2xx-pcm.c
Merge branches 'sched/clock', 'sched/cleanups' and 'linus' into sched/urgent
[linux-2.6-omap-h63xx.git] / sound / soc / pxa / pxa2xx-pcm.c
index c670d08e7c9ede6223b24b4ef78e8c2465859b89..53b9fb127a6d7f1b05121b7fe3979022d5c9acf2 100644 (file)
@@ -61,9 +61,9 @@ static int pxa2xx_pcm_hw_free(struct snd_pcm_substream *substream)
 
        __pxa2xx_pcm_hw_free(substream);
 
-       if (prtd->dma_ch) {
+       if (prtd->dma_ch >= 0) {
                pxa_free_dma(prtd->dma_ch);
-               prtd->dma_ch = 0;
+               prtd->dma_ch = -1;
        }
 
        return 0;