dmaengine: sirf: set dma residue based on the current dma transfer position
authorRongjun Ying <Rongjun.Ying@csr.com>
Tue, 14 May 2013 15:03:20 +0000 (23:03 +0800)
committerVinod Koul <vinod.koul@intel.com>
Fri, 5 Jul 2013 06:10:39 +0000 (11:40 +0530)
commitadd93b578edda2a952b9b481ce8da2a9dc412cee
treec5409a24671e2f76beee0893a8f965d6a3cbe50f
parent7bdc1e272a471062e8f310137c896e2355b46d13
dmaengine: sirf: set dma residue based on the current dma transfer position

read SIRFSOC_DMA_CH_ADDR register to get current dma transfer position, then
update dma residue so that things like ALSA drivers work as ALSA drivers need
the right residue value.

Signed-off-by: Rongjun Ying <Rongjun.Ying@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sirf-dma.c