aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-07-16 08:29:21 -0400
committerVinod Koul <vinod.koul@intel.com>2014-07-28 07:32:53 -0400
commita1f146f31724b649f74185ffc817bbd983eba5e2 (patch)
tree886b120a69296ce894f3dc7ddc46137c59084e13 /drivers/dma
parentb7f9bc5267d3517de8a7159219db96de7d12a37b (diff)
dmaengine: edma: Support to suppress the period interrupts in cyclic mode
If the client (audio) does not request interrupts for every period we can disable them. With updated audio driver stack we can play audio w/o the need to process any edma interrupts. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/edma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c
index 8e400c0f3529..54f7408e14ef 100644
--- a/drivers/dma/edma.c
+++ b/drivers/dma/edma.c
@@ -718,10 +718,10 @@ static struct dma_async_tx_descriptor *edma_prep_dma_cyclic(
718 edesc->absync = ret; 718 edesc->absync = ret;
719 719
720 /* 720 /*
721 * Enable interrupts for every period because callback 721 * Enable period interrupt only if it is requested
722 * has to be called for every period.
723 */ 722 */
724 edesc->pset[i].param.opt |= TCINTEN; 723 if (tx_flags & DMA_PREP_INTERRUPT)
724 edesc->pset[i].param.opt |= TCINTEN;
725 } 725 }
726 726
727 return vchan_tx_prep(&echan->vchan, &edesc->vdesc, tx_flags); 727 return vchan_tx_prep(&echan->vchan, &edesc->vdesc, tx_flags);