diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/i2c-imx31.c | 4 | ||||
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c | 10 |
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 | ||
22 | static int i2c_getack(void) | 23 | static 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 | ||
42 | void i2c_write(int addr, const unsigned char *buf, int count) | 44 | void 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 | ||
28 | static int pcm_freq = HW_SAMPR_DEFAULT; /* 44.1 is default */ | 29 | static int pcm_freq = HW_SAMPR_DEFAULT; /* 44.1 is default */ |
30 | #endif | ||
29 | 31 | ||
30 | void pcm_play_lock(void) | 32 | void pcm_play_lock(void) |
31 | { | 33 | { |
@@ -35,9 +37,11 @@ void pcm_play_unlock(void) | |||
35 | { | 37 | { |
36 | } | 38 | } |
37 | 39 | ||
40 | #if 0 | ||
38 | static void _pcm_apply_settings(void) | 41 | static void _pcm_apply_settings(void) |
39 | { | 42 | { |
40 | } | 43 | } |
44 | #endif | ||
41 | 45 | ||
42 | void pcm_apply_settings(void) | 46 | void 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 */ |
55 | static void play_start_pcm(void) | 60 | static void play_start_pcm(void) |
56 | { | 61 | { |
@@ -60,6 +65,7 @@ static void play_start_pcm(void) | |||
60 | static void play_stop_pcm(void) | 65 | static void play_stop_pcm(void) |
61 | { | 66 | { |
62 | } | 67 | } |
68 | #endif | ||
63 | 69 | ||
64 | void pcm_play_dma_start(const void *addr, size_t size) | 70 | void pcm_play_dma_start(const void *addr, size_t size) |
65 | { | 71 | { |
@@ -73,6 +79,7 @@ void pcm_play_dma_stop(void) | |||
73 | 79 | ||
74 | void pcm_play_dma_pause(bool pause) | 80 | void 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. */ |
81 | void pcm_set_frequency(unsigned int frequency) | 88 | void 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 */ |
86 | size_t pcm_get_bytes_waiting(void) | 94 | size_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 */ |
91 | const void * pcm_play_dma_get_peak_buffer(int *count) | 100 | const 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 */ |