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/pcm_sw_volume.c | |
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/pcm_sw_volume.c')
-rw-r--r-- | firmware/pcm_sw_volume.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/firmware/pcm_sw_volume.c b/firmware/pcm_sw_volume.c index e972896321..29049059e6 100644 --- a/firmware/pcm_sw_volume.c +++ b/firmware/pcm_sw_volume.c | |||
@@ -285,23 +285,6 @@ void pcm_play_dma_stop_int(void) | |||
285 | src_buf_rem = 0; | 285 | src_buf_rem = 0; |
286 | } | 286 | } |
287 | 287 | ||
288 | /* Return playing buffer from the source buffer */ | ||
289 | const void * pcm_play_dma_get_peak_buffer_int(int *count) | ||
290 | { | ||
291 | const void *addr = src_buf_addr; | ||
292 | size_t size = src_buf_rem; | ||
293 | const void *addr2 = src_buf_addr; | ||
294 | |||
295 | if (addr == addr2 && size) | ||
296 | { | ||
297 | *count = size / PCM_SAMPLE_SIZE; | ||
298 | return addr; | ||
299 | } | ||
300 | |||
301 | *count = 0; | ||
302 | return NULL; | ||
303 | } | ||
304 | |||
305 | #endif /* PCM_SW_VOLUME_UNBUFFERED */ | 288 | #endif /* PCM_SW_VOLUME_UNBUFFERED */ |
306 | 289 | ||
307 | 290 | ||