dmaengine: pl330: _loop_cyclic fix cycles of last loop

It has been tested by i2s, we can hear noise when play
music by unalign buffer size.

Change-Id: Ie52d5ac79c71df8fcec841d8801e24280831420e
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
This commit is contained in:
Huibin Hong 2017-10-12 17:00:37 +08:00 committed by Huang, Tao
parent b6a5629d4d
commit d7155171cb

View File

@ -1366,7 +1366,7 @@ static inline int _loop_cyclic(struct pl330_dmac *pl330, unsigned dry_run,
ccr &= ~(0xf << CC_SRCBRSTLEN_SHFT);
ccr &= ~(0xf << CC_DSTBRSTLEN_SHFT);
off += _emit_MOV(dry_run, &buf[off], CCR, ccr);
off += _emit_LP(dry_run, &buf[off], 1, c - 1);
off += _emit_LP(dry_run, &buf[off], 1, c);
ljmp1 = off;
off += _bursts(pl330, dry_run, &buf[off], pxs, 1);
lpend.cond = ALWAYS;