summaryrefslogtreecommitdiff
path: root/firmware/target/arm
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 /firmware/target/arm
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
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/i2c-imx31.c4
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c10
2 files changed, 13 insertions, 1 deletions
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 */