dma: tegra: set DMA_CYCLIC capability
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 22 Jun 2012 11:42:43 +0000 (17:12 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 27 Jun 2012 13:48:55 +0000 (19:18 +0530)
Tegra's APB DMA driver support the cyclic mode of data
transfer and hence setting the DMA_CYCLIC caps for dma
channels.

This is require when generic sound dmaengine pcm driver
request for dma channel with CYCLIC capability.

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 ba4d73c..c0836a7 100644 (file)
@@ -1306,6 +1306,8 @@ static int __devinit tegra_dma_probe(struct platform_device *pdev)
 
        dma_cap_set(DMA_SLAVE, tdma->dma_dev.cap_mask);
        dma_cap_set(DMA_PRIVATE, tdma->dma_dev.cap_mask);
+       dma_cap_set(DMA_CYCLIC, tdma->dma_dev.cap_mask);
+
        tdma->dma_dev.dev = &pdev->dev;
        tdma->dma_dev.device_alloc_chan_resources =
                                        tegra_dma_alloc_chan_resources;