diff options
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 | ||