1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Linus Nielsen Feltzing 2003-01-21 00:11:10 +00:00
parent 010975b84d
commit 9a9d9d046d

View file

@ -676,7 +676,7 @@ static void init_dma(void)
DAR3 = 0x5FFFEC3; DAR3 = 0x5FFFEC3;
CHCR3 &= ~0x0002; /* Clear interrupt */ CHCR3 &= ~0x0002; /* Clear interrupt */
CHCR3 = 0x1504; /* Single address destination, TXI0, IE=1 */ 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; DTCR3 = last_dma_chunk_size & 0xffff;
DMAOR = 0x0001; /* Enable DMA */ DMAOR = 0x0001; /* Enable DMA */
CHCR3 |= 0x0001; /* Enable DMA IRQ */ CHCR3 |= 0x0001; /* Enable DMA IRQ */
@ -893,7 +893,7 @@ void DEI3(void)
if(unplayed_space_left) 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, last_dma_chunk_size = MIN(last_dma_chunk_size,
space_until_end_of_buffer); space_until_end_of_buffer);