aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ep93xx_dma.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-09-14 08:05:47 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-22 11:12:45 -0400
commitec8b5e48c03790a68cb875fe5064007a9cbdfdd0 (patch)
tree18c572345b2c54d3d50f234e0e913d9f227363ba /drivers/dma/ep93xx_dma.c
parent2dcdf570936168d488acf90be9b04a3d32dafce7 (diff)
dmaengine: Pass flags via device_prep_dma_cyclic() callback
Change the parameter list of device_prep_dma_cyclic() so the DMA drivers can receive the flags coming from clients. This feature can be used during audio operation to disable all audio related interrupts when the DMA_PREP_INTERRUPT is cleared from the flags. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Vinod Koul <vinod.koul@linux.intel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/dma/ep93xx_dma.c')
-rw-r--r--drivers/dma/ep93xx_dma.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c
index c64917ec313d..493735b9b2c9 100644
--- a/drivers/dma/ep93xx_dma.c
+++ b/drivers/dma/ep93xx_dma.c
@@ -1120,6 +1120,7 @@ fail:
1120 * @buf_len: length of the buffer (in bytes) 1120 * @buf_len: length of the buffer (in bytes)
1121 * @period_len: lenght of a single period 1121 * @period_len: lenght of a single period
1122 * @dir: direction of the operation 1122 * @dir: direction of the operation
1123 * @flags: tx descriptor status flags
1123 * @context: operation context (ignored) 1124 * @context: operation context (ignored)
1124 * 1125 *
1125 * Prepares a descriptor for cyclic DMA operation. This means that once the 1126 * Prepares a descriptor for cyclic DMA operation. This means that once the
@@ -1133,7 +1134,8 @@ fail:
1133static struct dma_async_tx_descriptor * 1134static struct dma_async_tx_descriptor *
1134ep93xx_dma_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t dma_addr, 1135ep93xx_dma_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t dma_addr,
1135 size_t buf_len, size_t period_len, 1136 size_t buf_len, size_t period_len,
1136 enum dma_transfer_direction dir, void *context) 1137 enum dma_transfer_direction dir, unsigned long flags,
1138 void *context)
1137{ 1139{
1138 struct ep93xx_dma_chan *edmac = to_ep93xx_dma_chan(chan); 1140 struct ep93xx_dma_chan *edmac = to_ep93xx_dma_chan(chan);
1139 struct ep93xx_dma_desc *desc, *first; 1141 struct ep93xx_dma_desc *desc, *first;