summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-01-21 00:11:10 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-01-21 00:11:10 +0000
commit9a9d9d046dc3ce24079e6dcadadd9fb46f981459 (patch)
treed68f989112aaa51c2d2d42f27b87920b50e6a13d /firmware
parent010975b84d3a6f47d400a2118d90a70a8cfcf05b (diff)
downloadrockbox-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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/mpeg.c4
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)
676 DAR3 = 0x5FFFEC3; 676 DAR3 = 0x5FFFEC3;
677 CHCR3 &= ~0x0002; /* Clear interrupt */ 677 CHCR3 &= ~0x0002; /* Clear interrupt */
678 CHCR3 = 0x1504; /* Single address destination, TXI0, IE=1 */ 678 CHCR3 = 0x1504; /* Single address destination, TXI0, IE=1 */
679 last_dma_chunk_size = MIN(65536, get_unplayed_space_current_song()); 679 last_dma_chunk_size = MIN(0x2000, get_unplayed_space_current_song());
680 DTCR3 = last_dma_chunk_size & 0xffff; 680 DTCR3 = last_dma_chunk_size & 0xffff;
681 DMAOR = 0x0001; /* Enable DMA */ 681 DMAOR = 0x0001; /* Enable DMA */
682 CHCR3 |= 0x0001; /* Enable DMA IRQ */ 682 CHCR3 |= 0x0001; /* Enable DMA IRQ */
@@ -893,7 +893,7 @@ void DEI3(void)
893 893
894 if(unplayed_space_left) 894 if(unplayed_space_left)
895 { 895 {
896 last_dma_chunk_size = MIN(65536, unplayed_space_left); 896 last_dma_chunk_size = MIN(0x2000, unplayed_space_left);
897 last_dma_chunk_size = MIN(last_dma_chunk_size, 897 last_dma_chunk_size = MIN(last_dma_chunk_size,
898 space_until_end_of_buffer); 898 space_until_end_of_buffer);
899 899