diff options
author | Shawn Guo <[email protected]> | 2016-12-15 22:03:37 +0800 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2017-01-02 10:53:48 +0530 |
commit | 156ae09245c4c49c8eb4a0898411ee260966331d (patch) | |
tree | 207ea5eb1dd71d8ddb2887cab1307127b133b871 /lib/netdev-notifier-error-inject.c | |
parent | fc318d64f3d91e15babac00e08354b1beb650b57 (diff) |
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 <[email protected]>
Reviewed-by: Jun Nie <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions