summaryrefslogtreecommitdiffstats
path: root/firmware/target
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
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')
-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 @@
#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 */