Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peter Ujfalusi and committed by
Vinod Koul
a1f146f3 b7f9bc52

+3 -3
+3 -3
drivers/dma/edma.c
··· 718 718 edesc->absync = ret; 719 719 720 720 /* 721 - * Enable interrupts for every period because callback 722 - * has to be called for every period. 721 + * Enable period interrupt only if it is requested 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 727 return vchan_tx_prep(&echan->vchan, &edesc->vdesc, tx_flags);