diff --git a/firmware/rolo.c b/firmware/rolo.c index bfc0c13ff7..600f495bf4 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c @@ -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) diff --git a/firmware/sound.c b/firmware/sound.c index 123675cbde..35c869c4af 100644 --- a/firmware/sound.c +++ b/firmware/sound.c @@ -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) diff --git a/firmware/target/arm/imx31/gigabeat-s/i2c-imx31.c b/firmware/target/arm/imx31/gigabeat-s/i2c-imx31.c index 7c608c172d..54ddaa7a46 100644 --- a/firmware/target/arm/imx31/gigabeat-s/i2c-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/i2c-imx31.c @@ -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; } diff --git a/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c b/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c index 8485679aa4..4d2206bd56 100644 --- a/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c @@ -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 */ diff --git a/firmware/timer.c b/firmware/timer.c index c803048744..3d522efd41 100644 --- a/firmware/timer.c +++ b/firmware/timer.c @@ -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);