From e532714d1f76ccdbd1dcfeb3b4579d324cb519c1 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 25 Jul 2021 14:03:44 +0100 Subject: pcm: Remove unused function pcm_play_dma_get_peak_buffer() Change-Id: Ifd20fb14a22489cdb99154c01f69809a1e70d0c5 --- firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c') diff --git a/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c index 5ce5a8f399..fda8615e5a 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c +++ b/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c @@ -46,22 +46,6 @@ void pcm_play_dma_postinit(void) audiohw_postinit(); } -/* Return the current location in the SDRAM to SARAM transfer along with the - * number of bytes read in the current buffer (count). There is latency with - * this method equivalent to ~ the size of the SARAM buffer since there is - * another buffer between your ears and this calculation, but this works for - * key clicks and an approximate peak meter. - */ -const void * pcm_play_dma_get_peak_buffer(int *count) -{ - int cnt = DSP_(_sdem_level); - - unsigned long addr = (unsigned long) start + cnt; - - *count = (cnt & 0xFFFFF) >> 1; - return (void *)((addr + 2) & ~3); -} - void pcm_play_dma_init(void) { IO_INTC_IRQ0 = INTR_IRQ0_IMGBUF; -- cgit v1.2.3