]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dma: tegra: do not set transfer desc flag to DMA_CTRL_ACK in cyclic mode
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 22 Jun 2012 11:42:44 +0000 (17:12 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 27 Jun 2012 13:48:55 +0000 (19:18 +0530)
The sound dmaengine pcm driver uses the dma in cyclic mode and
it does not ack the transfer descriptor  after transfer stops.
This may lead to hold that desc in chip's dma driver and does
not allow to reuse/free that descriptors. Hence not enabling
flag DMA_CTRL_ACK when dma runs in cyclic mode.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/tegra20-apb-dma.c

index 78af256cca9ec0e80b43653641cf66fb9066ac99..ba4d73c525e6d84ee27a177f67e9b98a250c5d53 100644 (file)
@@ -1093,7 +1093,7 @@ struct dma_async_tx_descriptor *tegra_dma_prep_dma_cyclic(
                mem += len;
        }
        sg_req->last_sg = true;
-       dma_desc->txd.flags = DMA_CTRL_ACK;
+       dma_desc->txd.flags = 0;
 
        /*
         * Make sure that mode should not be conflicting with currently