dma: tegra: fix residual calculation for cyclic case
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 2 Jul 2012 08:22:07 +0000 (13:52 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 13 Jul 2012 03:19:54 +0000 (08:49 +0530)
In cyclic mode of DMA, the byte transferred can be more
than the requested size and in this case, calculating
residuals based on the current position of DMA transfer to
bytes requested i.e. bytes required to transfer to reach
bytes requested from current DMA position.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>

No differences found