From: Laxman Dewangan Date: Mon, 2 Jul 2012 08:22:07 +0000 (+0530) Subject: dma: tegra: fix residual calculation for cyclic case X-Git-Tag: v3.6-rc1~109^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a46ba36e25dcff1d30eb1681135c3c10af71c16;p=pandora-kernel.git 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 Acked-by: Stephen Warren Signed-off-by: Vinod Koul --- Reading git-diff-tree failed