mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user