Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: 8MB builds anyone?
From: Dario Carluccio (rockbox_list_at_carluccio.de)
Date: 2003-02-26


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
| @@ -479,6 +479,7 @@
| 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;
| @@ -676,7 +677,9 @@
| 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 */
| @@ -893,7 +896,8 @@
|
| 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);
|
| @@ -1691,6 +1695,7 @@
|
| /* 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 SIG



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa