commit | 4a46ba36e25dcff1d30eb1681135c3c10af71c16 | [log] [tgz] |
---|---|---|
author | Laxman Dewangan <ldewangan@nvidia.com> | Mon Jul 02 13:52:07 2012 +0530 |
committer | Vinod Koul <vinod.koul@linux.intel.com> | Fri Jul 13 08:49:54 2012 +0530 |
tree | 8003546e61cd4337b5f27001bab7854cefcfe8bc | |
parent | 46fb3f8ef5bde1325b1e58867a3a98dd746511d7 [diff] |
dma: tegra: fix residual calculation for cyclic case 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>