1
0
Fork 0
forked from len0rd/rockbox

Improve performance by putting more of the code and variables that are called by the DMA0 interrupt into IRAM (3% boost improvement on my test track).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8404 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2006-01-21 16:47:36 +00:00
parent 33914a7dfc
commit d8a6c0665d
2 changed files with 11 additions and 14 deletions

View file

@ -59,8 +59,8 @@ static bool pcm_playing;
static bool pcm_paused;
static int pcm_freq = 0x6; /* 44.1 is default */
static unsigned char *next_start;
static long next_size;
static unsigned char *next_start IDATA_ATTR;
static long next_size IDATA_ATTR;
/* Set up the DMA transfer that kicks in when the audio FIFO gets empty */
static void dma_start(const void *addr, long size)
@ -193,7 +193,7 @@ void pcm_set_frequency(unsigned int frequency)
}
/* the registered callback function to ask for more mp3 data */
static void (*callback_for_more)(unsigned char**, long*) = NULL;
static void (*callback_for_more)(unsigned char**, long*) IDATA_ATTR = NULL;
void pcm_play_data(void (*get_more)(unsigned char** start, long* size))
{