diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-01-21 00:11:10 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-01-21 00:11:10 +0000 |
commit | 9a9d9d046dc3ce24079e6dcadadd9fb46f981459 (patch) | |
tree | d68f989112aaa51c2d2d42f27b87920b50e6a13d | |
parent | 010975b84d3a6f47d400a2118d90a70a8cfcf05b (diff) | |
download | rockbox-9a9d9d046dc3ce24079e6dcadadd9fb46f981459.tar.gz rockbox-9a9d9d046dc3ce24079e6dcadadd9fb46f981459.zip |
Decreased the DMA transfer size, as proposed by Gerald Clark
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3138 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/mpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index b8c922c3be..ea07c94e43 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -676,7 +676,7 @@ static void init_dma(void) DAR3 = 0x5FFFEC3; CHCR3 &= ~0x0002; /* Clear interrupt */ CHCR3 = 0x1504; /* Single address destination, TXI0, IE=1 */ - last_dma_chunk_size = MIN(65536, get_unplayed_space_current_song()); + last_dma_chunk_size = MIN(0x2000, get_unplayed_space_current_song()); DTCR3 = last_dma_chunk_size & 0xffff; DMAOR = 0x0001; /* Enable DMA */ CHCR3 |= 0x0001; /* Enable DMA IRQ */ @@ -893,7 +893,7 @@ void DEI3(void) if(unplayed_space_left) { - last_dma_chunk_size = MIN(65536, unplayed_space_left); + last_dma_chunk_size = MIN(0x2000, unplayed_space_left); last_dma_chunk_size = MIN(last_dma_chunk_size, space_until_end_of_buffer); |