Skip to content

Commit

Permalink
dmaengine: imx-sdma: remove IMX_DMA_SG_LOOP handling in sdma_prep_sla…
Browse files Browse the repository at this point in the history
…ve_sg()

This is a leftover from the time that the driver did not have
sdma_prep_dma_cyclic callback and implemented sound dma as a looped
sg chain.  And it can be removed now.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Shawn Guo authored and Sascha Hauer committed Jan 31, 2011
1 parent 1bae4ce commit 1797c33
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,12 +931,6 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg(

param = BD_DONE | BD_EXTD | BD_CONT;

if (sdmac->flags & IMX_DMA_SG_LOOP) {
param |= BD_INTR;
if (i + 1 == sg_len)
param |= BD_WRAP;
}

if (i + 1 == sg_len)
param |= BD_INTR;

Expand Down

0 comments on commit 1797c33

Please sign in to comment.