1
0
Fork 0
forked from len0rd/rockbox

update the gigabeat code and move to target_tree

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10535 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcoen Hirschberg 2006-08-12 08:01:54 +00:00
parent e6ed58f6c5
commit dd754886f5
22 changed files with 622 additions and 118 deletions

View file

@ -55,6 +55,31 @@ static bool pcm_paused;
/* the registered callback function to ask for more mp3 data */
static void (*callback_for_more)(unsigned char**, size_t*) IDATA_ATTR = NULL;
#if (CONFIG_CPU == PNX0101 || CONFIG_CPU == S3C2440)
/* TODO: Implement for iFP7xx
For now, just implement some dummy functions.
*/
void pcm_init(void)
{
}
void pcm_set_frequency(unsigned int frequency)
{
(void)frequency;
}
void pcm_play_stop(void)
{
}
size_t pcm_get_bytes_waiting(void)
{
return 0;
}
#else
#ifdef CPU_COLDFIRE
#ifdef HAVE_SPDIF_OUT
@ -501,29 +526,13 @@ void pcm_init(void)
dma_stop();
}
#elif (CONFIG_CPU == PNX0101)
/* TODO: Implement for iFP7xx
For now, just implement some dummy functions.
*/
void pcm_init(void)
{
}
void pcm_set_frequency(unsigned int frequency)
{
(void)frequency;
}
#endif
void pcm_play_stop(void)
{
}
size_t pcm_get_bytes_waiting(void)
{
return 0;
if (pcm_playing) {
dma_stop();
}
}
#endif
@ -564,13 +573,6 @@ void pcm_mute(bool mute)
sleep(HZ/16);
}
void pcm_play_stop(void)
{
if (pcm_playing) {
dma_stop();
}
}
void pcm_play_pause(bool play)
{
bool needs_change = pcm_paused == play;
@ -620,11 +622,11 @@ void pcm_play_pause(bool play)
IISFIFO_WR = (*(p++))<<16;
p_size-=4;
}
#elif (CONFIG_CPU == PNX0101) /* End wmcodecs */
#elif (CONFIG_CPU == PNX0101 || CONFIG_CPU == S3C2440) /* End wmcodecs */
/* nothing yet */
#endif
} else {
#if (CONFIG_CPU != PNX0101)
#if (CONFIG_CPU != PNX0101 && CONFIG_CPU != S3C2440)
size_t next_size;
unsigned char *next_start;
void (*get_more)(unsigned char**, size_t*) = callback_for_more;
@ -665,7 +667,7 @@ void pcm_play_pause(bool play)
#endif
disable_fiq();
#elif (CONFIG_CPU == PNX0101) /* End wmcodecs */
#elif (CONFIG_CPU == PNX0101 || CONFIG_CPU == S3C2440) /* End wmcodecs */
/* nothing yet */
#endif
}
@ -697,7 +699,7 @@ bool pcm_is_paused(void) {
void pcm_calculate_peaks(int *left, int *right)
{
#if (CONFIG_CPU == PNX0101)
#if (CONFIG_CPU == PNX0101 || CONFIG_CPU == S3C2440)
(void)left;
(void)right;
#else