Skip to content

Commit ccffa38

Browse files
Peter Ujfalusibroonie
authored andcommitted
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>
1 parent c912fa9 commit ccffa38

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/dma/omap-dma.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,10 @@ static struct dma_async_tx_descriptor *omap_dma_prep_dma_cyclic(
413413
d->dev_addr = dev_addr;
414414
d->fi = burst;
415415
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;
417420
d->sync_type = sync_type;
418421
d->periph_port = OMAP_DMA_PORT_MPUI;
419422
d->sg[0].addr = buf_addr;

0 commit comments

Comments
 (0)