From 388adff3cc4ab8584c2c99f9bc5ad7e309281d5e Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 11 Nov 2020 23:20:19 -0500 Subject: pcm: Further cleanup of unused bits of the PCM ACPI: * pcm_get_bytes_remaining() * pcm_calculate_peaks() * pcm_get_peak_buffer() Nothing in-tree uses these at all (except for the lua plugin wrapper) Change-Id: I971b7beed6760250c8b1ce58f401a601e1e2d585 --- firmware/pcm.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'firmware/pcm.c') diff --git a/firmware/pcm.c b/firmware/pcm.c index 7a7043bef8..6fc0b626f7 100644 --- a/firmware/pcm.c +++ b/firmware/pcm.c @@ -37,7 +37,6 @@ * ==Playback== * Public - * pcm_postinit - * pcm_get_bytes_waiting * pcm_play_lock * pcm_play_unlock * Semi-private - @@ -47,7 +46,6 @@ * pcm_play_dma_postinit * pcm_play_dma_start * pcm_play_dma_stop - * pcm_play_dma_get_peak_buffer * Data Read/Written within TSP - * pcm_sampr (R) * pcm_fsel (R) @@ -118,11 +116,6 @@ static inline void pcm_play_dma_stop_int(void) pcm_play_dma_stop(); } -static inline const void * pcm_play_dma_get_peak_buffer_int(int *count) -{ - return pcm_play_dma_get_peak_buffer(count); -} - bool pcm_play_dma_complete_callback(enum pcm_dma_status status, const void **addr, size_t *size) { @@ -244,28 +237,6 @@ void pcm_do_peak_calculation(struct pcm_peaks *peaks, bool active, } } -void pcm_calculate_peaks(int *left, int *right) -{ - /* peak data for the global peak values - i.e. what the final output is */ - static struct pcm_peaks peaks; - - int count; - const void *addr = pcm_play_dma_get_peak_buffer_int(&count); - - pcm_do_peak_calculation(&peaks, pcm_playing, addr, count); - - if (left) - *left = peaks.left; - - if (right) - *right = peaks.right; -} - -const void * pcm_get_peak_buffer(int *count) -{ - return pcm_play_dma_get_peak_buffer_int(count); -} - bool pcm_is_playing(void) { return pcm_playing; -- cgit v1.2.3