summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c10
1 files changed, 10 insertions, 0 deletions
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 */