|
Rockbox mail archiveSubject: Re: 8MB builds anyone?Re: 8MB builds anyone?
From: Dario Carluccio <rockbox_list_at_carluccio.de>
Date: Wed, 26 Feb 2003 12:28:13 +0100 Hello Daniel, hello Rockboxers, * Daniel Stenberg wrote: UPS, pleas ignore my Error in the last Mail. What I want to say is, that I have the 8MB Mod and I would like to have a compiled version too. I am familiar with Hardware but it was very difficult for me to set up cygwin and the compiler. But now it works, according to the documentation of Uwe I changes the following in the mpeg.c: >> - modified firmware/mpeg.c > What changes are needed in there? ,----- [ ] | Index: mpeg.c | =================================================================== | RCS file: /cvsroot/rockbox/firmware/mpeg.c,v | retrieving revision 1.194 | diff -u -b -r1.194 mpeg.c | --- mpeg.c 21 Jan 2003 00:11:10 -0000 1.194 | +++ mpeg.c 23 Jan 2003 00:12:19 -0000 | _at__at_ -479,6 +479,7 _at__at_ | static int low_watermark_margin; /* Extra time in seconds for watermark */ | static int lowest_watermark_level; /* Debug value to observe the buffer | usage */ | + | #ifdef HAVE_MAS3587F | static bool is_recording; /* We are recording */ | static bool stop_pending; | _at__at_ -676,7 +677,9 _at__at_ | DAR3 = 0x5FFFEC3; | CHCR3 &= ~0x0002; /* Clear interrupt */ | CHCR3 = 0x1504; /* Single address destination, TXI0, IE=1 */ | - last_dma_chunk_size = MIN(0x2000, get_unplayed_space_current_song()); | + last_dma_chunk_size = MIN(65536, ( low_watermark * 2 / 3 )); | + last_dma_chunk_size = MIN(last_dma_chunk_size, | + get_unplayed_space_current_song()); | DTCR3 = last_dma_chunk_size & 0xffff; | DMAOR = 0x0001; /* Enable DMA */ | CHCR3 |= 0x0001; /* Enable DMA IRQ */ | _at__at_ -893,7 +896,8 _at__at_ | | if(unplayed_space_left) | { | - last_dma_chunk_size = MIN(0x2000, unplayed_space_left); | + last_dma_chunk_size = MIN(65536, ( low_watermark * 2 / 3 )); | + last_dma_chunk_size = MIN(last_dma_chunk_size, unplayed_space_left); | last_dma_chunk_size = MIN(last_dma_chunk_size, | space_until_end_of_buffer); | | _at__at_ -1691,6 +1695,7 _at__at_ | | /* Don't read more than until the end of the buffer */ | amount_to_read = MIN(mp3buflen - mp3buf_write, amount_to_read); | + amount_to_read = MIN(0x100000, amount_to_read); | | /* Read as much mpeg data as we can fit in the buffer */ | if(mpeg_file >= 0) '----- HTH bye Dario -- NO SIGReceived on 2003-02-26 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |