summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2016-12-15 22:03:37 +0800
committerVinod Koul <vinod.koul@intel.com>2017-01-02 10:53:48 +0530
commit156ae09245c4c49c8eb4a0898411ee260966331d (patch)
tree207ea5eb1dd71d8ddb2887cab1307127b133b871 /tools
parentfc318d64f3d91e15babac00e08354b1beb650b57 (diff)
downloadlinux-156ae09245c4c49c8eb4a0898411ee260966331d.tar.gz
linux-156ae09245c4c49c8eb4a0898411ee260966331d.tar.bz2
linux-156ae09245c4c49c8eb4a0898411ee260966331d.zip
dmaengine: zx: fix residue calculation
The dma residue is defined as the free space to end of transfer buffer, which could be multiple segments chained together. So the residue calculation in zx_dma_tx_status() works for both slave_sg and cyclic case. But unfortunately, the 'index' is wrong. It should plus one, because the current segment is already occupied and shouldn't be counted into free space. This fixes the HDMI audio noise issue we see on ZX296718 with SPDIF interface. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Reviewed-by: Jun Nie <jun.nie@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions