diff options
Diffstat (limited to 'firmware')
-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) | |||
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 | ||