diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-07-25 14:03:44 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-07-25 14:07:41 +0000 |
commit | e532714d1f76ccdbd1dcfeb3b4579d324cb519c1 (patch) | |
tree | 588252314fd7910c49b60cece106d2c23e6fcef6 /firmware/target/hosted | |
parent | 77ec7522485c0bf1f48669d6eca0d09366c3bbd7 (diff) | |
download | rockbox-e532714d1f76ccdbd1dcfeb3b4579d324cb519c1.tar.gz rockbox-e532714d1f76ccdbd1dcfeb3b4579d324cb519c1.zip |
pcm: Remove unused function pcm_play_dma_get_peak_buffer()
Change-Id: Ifd20fb14a22489cdb99154c01f69809a1e70d0c5
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r-- | firmware/target/hosted/android/pcm-android.c | 7 | ||||
-rw-r--r-- | firmware/target/hosted/ibasso/pcm-ibasso.c | 11 | ||||
-rw-r--r-- | firmware/target/hosted/maemo/pcm-gstreamer.c | 8 | ||||
-rw-r--r-- | firmware/target/hosted/pcm-alsa.c | 7 | ||||
-rw-r--r-- | firmware/target/hosted/sdl/pcm-sdl.c | 7 |
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 | ||
174 | const 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 | |||
181 | void pcm_play_dma_init(void) | 174 | void 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 */ | ||
443 | const 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 | |||
453 | void pcm_close_device(void) | 442 | void 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 | ||
194 | const 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 | |||
202 | static gboolean | 194 | static gboolean |
203 | gst_bus_message (GstBus * bus, GstMessage * message, void *unused) | 195 | gst_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 | ||
778 | const 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 | |||
785 | void pcm_play_dma_postinit(void) | 778 | void 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 | ||
279 | const 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 |
287 | void pcm_rec_lock(void) | 280 | void pcm_rec_lock(void) |
288 | { | 281 | { |