Skip to content

Commit 6a82a37

Browse files
Angus_Wangjamess-huang
authored andcommitted
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: I12367ab633ade151fd9058dbad03c619bd4700a1 Reviewed-on: https://tp-biosrd-v02/gerrit/81491 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent 80eaffa commit 6a82a37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/dma/pl330.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ static inline int _loop_cyclic(struct pl330_dmac *pl330, unsigned dry_run,
13661366
ccr &= ~(0xf << CC_SRCBRSTLEN_SHFT);
13671367
ccr &= ~(0xf << CC_DSTBRSTLEN_SHFT);
13681368
off += _emit_MOV(dry_run, &buf[off], CCR, ccr);
1369-
off += _emit_LP(dry_run, &buf[off], 1, c - 1);
1369+
off += _emit_LP(dry_run, &buf[off], 1, c);
13701370
ljmp1 = off;
13711371
off += _bursts(pl330, dry_run, &buf[off], pxs, 1);
13721372
lpend.cond = ALWAYS;

0 commit comments

Comments
 (0)