Commit 46fb3f8e authored by Laxman Dewangan's avatar Laxman Dewangan Committed by Vinod Koul

dma: tegra: set DMA_CYCLIC capability

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: default avatarLaxman Dewangan <ldewangan@nvidia.com>
Acked-by: default avatarStephen Warren <swarren@wwwdotorg.org>
Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
parent 6660f7af
...@@ -1306,6 +1306,8 @@ static int __devinit tegra_dma_probe(struct platform_device *pdev) ...@@ -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_SLAVE, tdma->dma_dev.cap_mask);
dma_cap_set(DMA_PRIVATE, 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.dev = &pdev->dev;
tdma->dma_dev.device_alloc_chan_resources = tdma->dma_dev.device_alloc_chan_resources =
tegra_dma_alloc_chan_resources; tegra_dma_alloc_chan_resources;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment