diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-09-14 08:05:44 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-22 11:12:35 -0400 |
commit | ccffa3870a7ec2b59cf051b745220c56f423d182 (patch) | |
tree | 95c6c61c0f7ceb1b255d4b3f838ecd1d45bef863 /drivers/dma | |
parent | c912fa913446b07147f6cbc1a8fa2fb20d2f7c36 (diff) |
dmaengine: omap: Support for element mode in cyclic DMA
When src_maxburst/dst_maxburst is set to 0 by the users of cyclic DMA
(mostly audio) indicates that we should configure the omap DMA to element
sync mode instead of packet mode.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Vinod Koul <vinod.koul@linux.intel.com>
Tested-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/omap-dma.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index ae0561826137..b77a40db2856 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c | |||
@@ -413,7 +413,10 @@ static struct dma_async_tx_descriptor *omap_dma_prep_dma_cyclic( | |||
413 | d->dev_addr = dev_addr; | 413 | d->dev_addr = dev_addr; |
414 | d->fi = burst; | 414 | d->fi = burst; |
415 | d->es = es; | 415 | d->es = es; |
416 | d->sync_mode = OMAP_DMA_SYNC_PACKET; | 416 | if (burst) |
417 | d->sync_mode = OMAP_DMA_SYNC_PACKET; | ||
418 | else | ||
419 | d->sync_mode = OMAP_DMA_SYNC_ELEMENT; | ||
417 | d->sync_type = sync_type; | 420 | d->sync_type = sync_type; |
418 | d->periph_port = OMAP_DMA_PORT_MPUI; | 421 | d->periph_port = OMAP_DMA_PORT_MPUI; |
419 | d->sg[0].addr = buf_addr; | 422 | d->sg[0].addr = buf_addr; |