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:
parent
c4a49c4e5f
commit
040b6cc654
5 changed files with 21 additions and 4 deletions
|
@ -340,6 +340,7 @@ int rolo_load(const char* filename)
|
||||||
rolo_restart(audiobuf, ramstart, length);
|
rolo_restart(audiobuf, ramstart, length);
|
||||||
|
|
||||||
return 0; /* this is never reached */
|
return 0; /* this is never reached */
|
||||||
|
(void)i; (void)checksum; (void)file_checksum;
|
||||||
}
|
}
|
||||||
#else /* !defined(IRIVER_IFP7XX_SERIES) */
|
#else /* !defined(IRIVER_IFP7XX_SERIES) */
|
||||||
int rolo_load(const char* filename)
|
int rolo_load(const char* filename)
|
||||||
|
|
|
@ -412,6 +412,7 @@ void sound_set_volume(int value)
|
||||||
int tmp = (60 - value * 4) & 0xff;
|
int tmp = (60 - value * 4) & 0xff;
|
||||||
CODECVOL = tmp | (tmp << 8);
|
CODECVOL = tmp | (tmp << 8);
|
||||||
#endif
|
#endif
|
||||||
|
(void)value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sound_set_balance(int value)
|
void sound_set_balance(int value)
|
||||||
|
@ -429,8 +430,8 @@ void sound_set_balance(int value)
|
||||||
set_prescaled_volume();
|
set_prescaled_volume();
|
||||||
#elif CONFIG_CPU == PNX0101
|
#elif CONFIG_CPU == PNX0101
|
||||||
/* TODO: implement for iFP */
|
/* TODO: implement for iFP */
|
||||||
(void)value;
|
|
||||||
#endif
|
#endif
|
||||||
|
(void)value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sound_set_bass(int value)
|
void sound_set_bass(int value)
|
||||||
|
@ -459,8 +460,8 @@ void sound_set_bass(int value)
|
||||||
set_prescaled_volume();
|
set_prescaled_volume();
|
||||||
#elif CONFIG_CPU == PNX0101
|
#elif CONFIG_CPU == PNX0101
|
||||||
/* TODO: implement for iFP */
|
/* TODO: implement for iFP */
|
||||||
(void)value;
|
|
||||||
#endif
|
#endif
|
||||||
|
(void)value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sound_set_treble(int value)
|
void sound_set_treble(int value)
|
||||||
|
@ -489,8 +490,8 @@ void sound_set_treble(int value)
|
||||||
set_prescaled_volume();
|
set_prescaled_volume();
|
||||||
#elif CONFIG_CPU == PNX0101
|
#elif CONFIG_CPU == PNX0101
|
||||||
/* TODO: implement for iFP */
|
/* TODO: implement for iFP */
|
||||||
|
#endif
|
||||||
(void)value;
|
(void)value;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void sound_set_channels(int value)
|
void sound_set_channels(int value)
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "i2c-imx31.h"
|
#include "i2c-imx31.h"
|
||||||
|
|
||||||
|
#if 0
|
||||||
static int i2c_getack(void)
|
static int i2c_getack(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -38,11 +39,12 @@ static int i2c_outb(unsigned char byte)
|
||||||
(void)byte;
|
(void)byte;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void i2c_write(int addr, const unsigned char *buf, int count)
|
void i2c_write(int addr, const unsigned char *buf, int count)
|
||||||
{
|
{
|
||||||
(void)addr;
|
(void)addr;
|
||||||
(void)*buf;
|
(void)buf;
|
||||||
(void)count;
|
(void)count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,9 @@
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
#include "mmu-imx31.h"
|
#include "mmu-imx31.h"
|
||||||
|
|
||||||
|
#if 0
|
||||||
static int pcm_freq = HW_SAMPR_DEFAULT; /* 44.1 is default */
|
static int pcm_freq = HW_SAMPR_DEFAULT; /* 44.1 is default */
|
||||||
|
#endif
|
||||||
|
|
||||||
void pcm_play_lock(void)
|
void pcm_play_lock(void)
|
||||||
{
|
{
|
||||||
|
@ -35,9 +37,11 @@ void pcm_play_unlock(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static void _pcm_apply_settings(void)
|
static void _pcm_apply_settings(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void pcm_apply_settings(void)
|
void pcm_apply_settings(void)
|
||||||
{
|
{
|
||||||
|
@ -51,6 +55,7 @@ void pcm_postinit(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* Connect the DMA and start filling the FIFO */
|
/* Connect the DMA and start filling the FIFO */
|
||||||
static void play_start_pcm(void)
|
static void play_start_pcm(void)
|
||||||
{
|
{
|
||||||
|
@ -60,6 +65,7 @@ static void play_start_pcm(void)
|
||||||
static void play_stop_pcm(void)
|
static void play_stop_pcm(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void pcm_play_dma_start(const void *addr, size_t size)
|
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 pcm_play_dma_pause(bool pause)
|
||||||
{
|
{
|
||||||
|
(void)pause;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the pcm frequency hardware will use when play is next started or
|
/* 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. */
|
hardware here but simply cache it. */
|
||||||
void pcm_set_frequency(unsigned int frequency)
|
void pcm_set_frequency(unsigned int frequency)
|
||||||
{
|
{
|
||||||
|
(void)frequency;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the number of bytes waiting - full L-R sample pairs only */
|
/* Return the number of bytes waiting - full L-R sample pairs only */
|
||||||
size_t pcm_get_bytes_waiting(void)
|
size_t pcm_get_bytes_waiting(void)
|
||||||
{
|
{
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return a pointer to the samples and the number of them in *count */
|
/* Return a pointer to the samples and the number of them in *count */
|
||||||
const void * pcm_play_dma_get_peak_buffer(int *count)
|
const void * pcm_play_dma_get_peak_buffer(int *count)
|
||||||
{
|
{
|
||||||
(void)count;
|
(void)count;
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Any recording functionality should be implemented similarly */
|
/* Any recording functionality should be implemented similarly */
|
||||||
|
|
|
@ -212,6 +212,8 @@ static bool timer_set(long cycles, bool start)
|
||||||
return true;
|
return true;
|
||||||
#elif (CONFIG_CPU == IMX31L)
|
#elif (CONFIG_CPU == IMX31L)
|
||||||
/* TODO */
|
/* TODO */
|
||||||
|
(void)cycles; (void)start;
|
||||||
|
return false;
|
||||||
#else
|
#else
|
||||||
return __TIMER_SET(cycles, start);
|
return __TIMER_SET(cycles, start);
|
||||||
#endif /* CONFIG_CPU */
|
#endif /* CONFIG_CPU */
|
||||||
|
@ -280,6 +282,7 @@ bool timer_register(int reg_prio, void (*unregister_callback)(void),
|
||||||
return true;
|
return true;
|
||||||
#elif CONFIG_CPU == IMX31L
|
#elif CONFIG_CPU == IMX31L
|
||||||
/* TODO */
|
/* TODO */
|
||||||
|
return false;
|
||||||
#else
|
#else
|
||||||
return __TIMER_REGISTER(reg_prio, unregister_callback, cycles,
|
return __TIMER_REGISTER(reg_prio, unregister_callback, cycles,
|
||||||
int_prio, timer_callback);
|
int_prio, timer_callback);
|
||||||
|
|
Loading…
Reference in a new issue