diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-06-22 07:42:43 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2012-06-27 09:48:55 -0400 |
commit | 46fb3f8ef5bde1325b1e58867a3a98dd746511d7 (patch) | |
tree | 244c1cd406cb4d833f7ff02cf096f658f9d39487 /drivers/dma/tegra20-apb-dma.c | |
parent | 6660f7af52caf6028b36e6a68a21c461f2fb0440 (diff) |
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: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma/tegra20-apb-dma.c')
-rw-r--r-- | drivers/dma/tegra20-apb-dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index ba4d73c525e6..c0836a7a8631 100644 --- a/drivers/dma/tegra20-apb-dma.c +++ b/drivers/dma/tegra20-apb-dma.c | |||
@@ -1306,6 +1306,8 @@ static int __devinit tegra_dma_probe(struct platform_device *pdev) | |||
1306 | 1306 | ||
1307 | dma_cap_set(DMA_SLAVE, tdma->dma_dev.cap_mask); | 1307 | dma_cap_set(DMA_SLAVE, tdma->dma_dev.cap_mask); |
1308 | dma_cap_set(DMA_PRIVATE, tdma->dma_dev.cap_mask); | 1308 | dma_cap_set(DMA_PRIVATE, tdma->dma_dev.cap_mask); |
1309 | dma_cap_set(DMA_CYCLIC, tdma->dma_dev.cap_mask); | ||
1310 | |||
1309 | tdma->dma_dev.dev = &pdev->dev; | 1311 | tdma->dma_dev.dev = &pdev->dev; |
1310 | tdma->dma_dev.device_alloc_chan_resources = | 1312 | tdma->dma_dev.device_alloc_chan_resources = |
1311 | tegra_dma_alloc_chan_resources; | 1313 | tegra_dma_alloc_chan_resources; |