summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-04-15 14:44:32 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-04-15 14:44:32 +0000
commit040b6cc654b90b09a71e5eae1749fe6f6f403cac (patch)
treec6385d679571b7a00c92a20696d3e04388a6c9b1
parentc4a49c4e5f2013222c6c62d56c219fa26ecf9b76 (diff)
downloadrockbox-040b6cc654b90b09a71e5eae1749fe6f6f403cac.tar.gz
rockbox-040b6cc654b90b09a71e5eae1749fe6f6f403cac.zip
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
-rw-r--r--firmware/rolo.c1
-rw-r--r--firmware/sound.c7
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/i2c-imx31.c4
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c10
-rw-r--r--firmware/timer.c3
5 files changed, 21 insertions, 4 deletions
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)
340 rolo_restart(audiobuf, ramstart, length); 340 rolo_restart(audiobuf, ramstart, length);
341 341
342 return 0; /* this is never reached */ 342 return 0; /* this is never reached */
343 (void)i; (void)checksum; (void)file_checksum;
343} 344}
344#else /* !defined(IRIVER_IFP7XX_SERIES) */ 345#else /* !defined(IRIVER_IFP7XX_SERIES) */
345int rolo_load(const char* filename) 346int 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)
412 int tmp = (60 - value * 4) & 0xff; 412 int tmp = (60 - value * 4) & 0xff;
413 CODECVOL = tmp | (tmp << 8); 413 CODECVOL = tmp | (tmp << 8);
414#endif 414#endif
415 (void)value;
415} 416}
416 417
417void sound_set_balance(int value) 418void sound_set_balance(int value)
@@ -429,8 +430,8 @@ void sound_set_balance(int value)
429 set_prescaled_volume(); 430 set_prescaled_volume();
430#elif CONFIG_CPU == PNX0101 431#elif CONFIG_CPU == PNX0101
431 /* TODO: implement for iFP */ 432 /* TODO: implement for iFP */
432 (void)value;
433#endif 433#endif
434 (void)value;
434} 435}
435 436
436void sound_set_bass(int value) 437void sound_set_bass(int value)
@@ -459,8 +460,8 @@ void sound_set_bass(int value)
459 set_prescaled_volume(); 460 set_prescaled_volume();
460#elif CONFIG_CPU == PNX0101 461#elif CONFIG_CPU == PNX0101
461 /* TODO: implement for iFP */ 462 /* TODO: implement for iFP */
462 (void)value;
463#endif 463#endif
464 (void)value;
464} 465}
465 466
466void sound_set_treble(int value) 467void sound_set_treble(int value)
@@ -489,8 +490,8 @@ void sound_set_treble(int value)
489 set_prescaled_volume(); 490 set_prescaled_volume();
490#elif CONFIG_CPU == PNX0101 491#elif CONFIG_CPU == PNX0101
491 /* TODO: implement for iFP */ 492 /* TODO: implement for iFP */
493#endif
492 (void)value; 494 (void)value;
493#endif
494} 495}
495 496
496void sound_set_channels(int value) 497void 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 @@
19#include "system.h" 19#include "system.h"
20#include "i2c-imx31.h" 20#include "i2c-imx31.h"
21 21
22#if 0
22static int i2c_getack(void) 23static int i2c_getack(void)
23{ 24{
24 return 0; 25 return 0;
@@ -38,11 +39,12 @@ static int i2c_outb(unsigned char byte)
38 (void)byte; 39 (void)byte;
39 return 0; 40 return 0;
40} 41}
42#endif
41 43
42void i2c_write(int addr, const unsigned char *buf, int count) 44void i2c_write(int addr, const unsigned char *buf, int count)
43{ 45{
44 (void)addr; 46 (void)addr;
45 (void)*buf; 47 (void)buf;
46 (void)count; 48 (void)count;
47} 49}
48 50
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 @@
25#include "file.h" 25#include "file.h"
26#include "mmu-imx31.h" 26#include "mmu-imx31.h"
27 27
28#if 0
28static int pcm_freq = HW_SAMPR_DEFAULT; /* 44.1 is default */ 29static int pcm_freq = HW_SAMPR_DEFAULT; /* 44.1 is default */
30#endif
29 31
30void pcm_play_lock(void) 32void pcm_play_lock(void)
31{ 33{
@@ -35,9 +37,11 @@ void pcm_play_unlock(void)
35{ 37{
36} 38}
37 39
40#if 0
38static void _pcm_apply_settings(void) 41static void _pcm_apply_settings(void)
39{ 42{
40} 43}
44#endif
41 45
42void pcm_apply_settings(void) 46void pcm_apply_settings(void)
43{ 47{
@@ -51,6 +55,7 @@ void pcm_postinit(void)
51{ 55{
52} 56}
53 57
58#if 0
54/* Connect the DMA and start filling the FIFO */ 59/* Connect the DMA and start filling the FIFO */
55static void play_start_pcm(void) 60static void play_start_pcm(void)
56{ 61{
@@ -60,6 +65,7 @@ static void play_start_pcm(void)
60static void play_stop_pcm(void) 65static void play_stop_pcm(void)
61{ 66{
62} 67}
68#endif
63 69
64void pcm_play_dma_start(const void *addr, size_t size) 70void pcm_play_dma_start(const void *addr, size_t size)
65{ 71{
@@ -73,6 +79,7 @@ void pcm_play_dma_stop(void)
73 79
74void pcm_play_dma_pause(bool pause) 80void pcm_play_dma_pause(bool pause)
75{ 81{
82 (void)pause;
76} 83}
77 84
78/* Set the pcm frequency hardware will use when play is next started or 85/* Set the pcm frequency hardware will use when play is next started or
@@ -80,17 +87,20 @@ void pcm_play_dma_pause(bool pause)
80 hardware here but simply cache it. */ 87 hardware here but simply cache it. */
81void pcm_set_frequency(unsigned int frequency) 88void pcm_set_frequency(unsigned int frequency)
82{ 89{
90 (void)frequency;
83} 91}
84 92
85/* Return the number of bytes waiting - full L-R sample pairs only */ 93/* Return the number of bytes waiting - full L-R sample pairs only */
86size_t pcm_get_bytes_waiting(void) 94size_t pcm_get_bytes_waiting(void)
87{ 95{
96 return 0;
88} 97}
89 98
90/* Return a pointer to the samples and the number of them in *count */ 99/* Return a pointer to the samples and the number of them in *count */
91const void * pcm_play_dma_get_peak_buffer(int *count) 100const void * pcm_play_dma_get_peak_buffer(int *count)
92{ 101{
93 (void)count; 102 (void)count;
103 return NULL;
94} 104}
95 105
96/* Any recording functionality should be implemented similarly */ 106/* 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)
212 return true; 212 return true;
213#elif (CONFIG_CPU == IMX31L) 213#elif (CONFIG_CPU == IMX31L)
214 /* TODO */ 214 /* TODO */
215 (void)cycles; (void)start;
216 return false;
215#else 217#else
216 return __TIMER_SET(cycles, start); 218 return __TIMER_SET(cycles, start);
217#endif /* CONFIG_CPU */ 219#endif /* CONFIG_CPU */
@@ -280,6 +282,7 @@ bool timer_register(int reg_prio, void (*unregister_callback)(void),
280 return true; 282 return true;
281#elif CONFIG_CPU == IMX31L 283#elif CONFIG_CPU == IMX31L
282 /* TODO */ 284 /* TODO */
285 return false;
283#else 286#else
284 return __TIMER_REGISTER(reg_prio, unregister_callback, cycles, 287 return __TIMER_REGISTER(reg_prio, unregister_callback, cycles,
285 int_prio, timer_callback); 288 int_prio, timer_callback);