Kill warnings that annoy me when building for Gigabeat S.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17120 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-04-15 14:44:32 +00:00
parent c4a49c4e5f
commit 040b6cc654
5 changed files with 21 additions and 4 deletions

View file

@ -340,6 +340,7 @@ int rolo_load(const char* filename)
rolo_restart(audiobuf, ramstart, length);
return 0; /* this is never reached */
(void)i; (void)checksum; (void)file_checksum;
}
#else /* !defined(IRIVER_IFP7XX_SERIES) */
int rolo_load(const char* filename)

View file

@ -412,6 +412,7 @@ void sound_set_volume(int value)
int tmp = (60 - value * 4) & 0xff;
CODECVOL = tmp | (tmp << 8);
#endif
(void)value;
}
void sound_set_balance(int value)
@ -429,8 +430,8 @@ void sound_set_balance(int value)
set_prescaled_volume();
#elif CONFIG_CPU == PNX0101
/* TODO: implement for iFP */
(void)value;
#endif
(void)value;
}
void sound_set_bass(int value)
@ -459,8 +460,8 @@ void sound_set_bass(int value)
set_prescaled_volume();
#elif CONFIG_CPU == PNX0101
/* TODO: implement for iFP */
(void)value;
#endif
(void)value;
}
void sound_set_treble(int value)
@ -489,8 +490,8 @@ void sound_set_treble(int value)
set_prescaled_volume();
#elif CONFIG_CPU == PNX0101
/* TODO: implement for iFP */
#endif
(void)value;
#endif
}
void sound_set_channels(int value)

View file

@ -19,6 +19,7 @@
#include "system.h"
#include "i2c-imx31.h"
#if 0
static int i2c_getack(void)
{
return 0;
@ -38,11 +39,12 @@ static int i2c_outb(unsigned char byte)
(void)byte;
return 0;
}
#endif
void i2c_write(int addr, const unsigned char *buf, int count)
{
(void)addr;
(void)*buf;
(void)buf;
(void)count;
}

View file

@ -25,7 +25,9 @@
#include "file.h"
#include "mmu-imx31.h"
#if 0
static int pcm_freq = HW_SAMPR_DEFAULT; /* 44.1 is default */
#endif
void pcm_play_lock(void)
{
@ -35,9 +37,11 @@ void pcm_play_unlock(void)
{
}
#if 0
static void _pcm_apply_settings(void)
{
}
#endif
void pcm_apply_settings(void)
{
@ -51,6 +55,7 @@ void pcm_postinit(void)
{
}
#if 0
/* Connect the DMA and start filling the FIFO */
static void play_start_pcm(void)
{
@ -60,6 +65,7 @@ static void play_start_pcm(void)
static void play_stop_pcm(void)
{
}
#endif
void pcm_play_dma_start(const void *addr, size_t size)
{
@ -73,6 +79,7 @@ void pcm_play_dma_stop(void)
void pcm_play_dma_pause(bool pause)
{
(void)pause;
}
/* Set the pcm frequency hardware will use when play is next started or
@ -80,17 +87,20 @@ void pcm_play_dma_pause(bool pause)
hardware here but simply cache it. */
void pcm_set_frequency(unsigned int frequency)
{
(void)frequency;
}
/* Return the number of bytes waiting - full L-R sample pairs only */
size_t pcm_get_bytes_waiting(void)
{
return 0;
}
/* Return a pointer to the samples and the number of them in *count */
const void * pcm_play_dma_get_peak_buffer(int *count)
{
(void)count;
return NULL;
}
/* Any recording functionality should be implemented similarly */

View file

@ -212,6 +212,8 @@ static bool timer_set(long cycles, bool start)
return true;
#elif (CONFIG_CPU == IMX31L)
/* TODO */
(void)cycles; (void)start;
return false;
#else
return __TIMER_SET(cycles, start);
#endif /* CONFIG_CPU */
@ -280,6 +282,7 @@ bool timer_register(int reg_prio, void (*unregister_callback)(void),
return true;
#elif CONFIG_CPU == IMX31L
/* TODO */
return false;
#else
return __TIMER_REGISTER(reg_prio, unregister_callback, cycles,
int_prio, timer_callback);