diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2009-07-05 20:01:35 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-07-05 20:01:35 +0000 |
commit | e979951daeb7febf272f2b7685c9017f1f2b0bd4 (patch) | |
tree | 524033e512fb49c2a9e03aa19a6c41950eb8d626 | |
parent | 90beb9a04244120c49fa31646eb0e66f06e21e27 (diff) |
s5l8700: fix off-by-one error in DMA count
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21678 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | firmware/target/arm/s5l8700/dma-s5l8700.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/s5l8700/dma-s5l8700.c b/firmware/target/arm/s5l8700/dma-s5l8700.c index f766cef98a..88db7e005f 100755 --- a/firmware/target/arm/s5l8700/dma-s5l8700.c +++ b/firmware/target/arm/s5l8700/dma-s5l8700.c @@ -83,7 +83,7 @@ void dma_setup_channel(int channel, int sel, int dir, int dsize, int blen, (1 << 16) | /* WCOMINT */ (0 << 0); /* OFFSET */ DMABASE(channel) = (unsigned int)addr; - DMATCNT(channel) = size; + DMATCNT(channel) = size - 1; } void dma_enable_channel(int channel) |