summaryrefslogtreecommitdiff
path: root/firmware/target/hosted
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r--firmware/target/hosted/android/pcm-android.c7
-rw-r--r--firmware/target/hosted/ibasso/pcm-ibasso.c11
-rw-r--r--firmware/target/hosted/maemo/pcm-gstreamer.c8
-rw-r--r--firmware/target/hosted/pcm-alsa.c7
-rw-r--r--firmware/target/hosted/sdl/pcm-sdl.c7
5 files changed, 0 insertions, 40 deletions
diff --git a/firmware/target/hosted/android/pcm-android.c b/firmware/target/hosted/android/pcm-android.c
index b078f92698..c23b802b2d 100644
--- a/firmware/target/hosted/android/pcm-android.c
+++ b/firmware/target/hosted/android/pcm-android.c
@@ -171,13 +171,6 @@ void pcm_play_dma_stop(void)
171 stop_method); 171 stop_method);
172} 172}
173 173
174const void * pcm_play_dma_get_peak_buffer(int *count)
175{
176 uintptr_t addr = (uintptr_t)pcm_data_start;
177 *count = pcm_data_size / 4;
178 return (void *)((addr + 3) & ~3);
179}
180
181void pcm_play_dma_init(void) 174void pcm_play_dma_init(void)
182{ 175{
183 /* in order to have background music playing after leaving the activity, 176 /* in order to have background music playing after leaving the activity,
diff --git a/firmware/target/hosted/ibasso/pcm-ibasso.c b/firmware/target/hosted/ibasso/pcm-ibasso.c
index e31732431b..5c68ded3e1 100644
--- a/firmware/target/hosted/ibasso/pcm-ibasso.c
+++ b/firmware/target/hosted/ibasso/pcm-ibasso.c
@@ -439,17 +439,6 @@ void pcm_dma_apply_settings(void)
439 } 439 }
440} 440}
441 441
442/* TODO: WTF */
443const void* pcm_play_dma_get_peak_buffer(int* count)
444{
445 TRACE;
446
447 uintptr_t addr = (uintptr_t) _pcm_buffer;
448 *count = _pcm_buffer_size / 4;
449 return (void*) ((addr + 3) & ~3);
450}
451
452
453void pcm_close_device(void) 442void pcm_close_device(void)
454{ 443{
455 TRACE; 444 TRACE;
diff --git a/firmware/target/hosted/maemo/pcm-gstreamer.c b/firmware/target/hosted/maemo/pcm-gstreamer.c
index e2d57f9fab..33fa6d343f 100644
--- a/firmware/target/hosted/maemo/pcm-gstreamer.c
+++ b/firmware/target/hosted/maemo/pcm-gstreamer.c
@@ -191,14 +191,6 @@ static void feed_data(GstElement * appsrc, guint size_hint, void *unused)
191 unlock_audio(); 191 unlock_audio();
192} 192}
193 193
194const void * pcm_play_dma_get_peak_buffer(int *count)
195{
196 uintptr_t addr = (uintptr_t)pcm_data;
197 *count = pcm_data_size / 4;
198 return (void *)((addr + 2) & ~3);
199}
200
201
202static gboolean 194static gboolean
203gst_bus_message (GstBus * bus, GstMessage * message, void *unused) 195gst_bus_message (GstBus * bus, GstMessage * message, void *unused)
204{ 196{
diff --git a/firmware/target/hosted/pcm-alsa.c b/firmware/target/hosted/pcm-alsa.c
index 81c0a19a45..13ebbbcbeb 100644
--- a/firmware/target/hosted/pcm-alsa.c
+++ b/firmware/target/hosted/pcm-alsa.c
@@ -775,13 +775,6 @@ void pcm_play_dma_start(const void *addr, size_t size)
775 } 775 }
776} 776}
777 777
778const void * pcm_play_dma_get_peak_buffer(int *count)
779{
780 uintptr_t addr = (uintptr_t)pcm_data;
781 *count = pcm_size / 4;
782 return (void *)((addr + 3) & ~3);
783}
784
785void pcm_play_dma_postinit(void) 778void pcm_play_dma_postinit(void)
786{ 779{
787 audiohw_postinit(); 780 audiohw_postinit();
diff --git a/firmware/target/hosted/sdl/pcm-sdl.c b/firmware/target/hosted/sdl/pcm-sdl.c
index 7297e94340..940403002f 100644
--- a/firmware/target/hosted/sdl/pcm-sdl.c
+++ b/firmware/target/hosted/sdl/pcm-sdl.c
@@ -276,13 +276,6 @@ static void sdl_audio_callback(struct pcm_udata *udata, Uint8 *stream, int len)
276 SDL_UnlockMutex(audio_lock); 276 SDL_UnlockMutex(audio_lock);
277} 277}
278 278
279const void * pcm_play_dma_get_peak_buffer(int *count)
280{
281 uintptr_t addr = (uintptr_t)pcm_data;
282 *count = pcm_data_size / 4;
283 return (void *)((addr + 2) & ~3);
284}
285
286#ifdef HAVE_RECORDING 279#ifdef HAVE_RECORDING
287void pcm_rec_lock(void) 280void pcm_rec_lock(void)
288{ 281{