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/coldfire/pcm-coldfire.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/target/coldfire/pcm-coldfire.c')
-rw-r--r-- | firmware/target/coldfire/pcm-coldfire.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/firmware/target/coldfire/pcm-coldfire.c b/firmware/target/coldfire/pcm-coldfire.c index c45219297c..36eb00c31b 100644 --- a/firmware/target/coldfire/pcm-coldfire.c +++ b/firmware/target/coldfire/pcm-coldfire.c | |||
@@ -301,21 +301,6 @@ void DMA0(void) | |||
301 | /* else inished playing */ | 301 | /* else inished playing */ |
302 | } /* DMA0 */ | 302 | } /* DMA0 */ |
303 | 303 | ||
304 | const void * pcm_play_dma_get_peak_buffer(int *count) | ||
305 | { | ||
306 | unsigned long addr, cnt; | ||
307 | |||
308 | /* Make sure interrupt doesn't change the second value after we read the | ||
309 | * first value. */ | ||
310 | int level = set_irq_level(DMA_IRQ_LEVEL); | ||
311 | addr = SAR0; | ||
312 | cnt = BCR0; | ||
313 | restore_irq(level); | ||
314 | |||
315 | *count = (cnt & 0xffffff) >> 2; | ||
316 | return (void *)((addr + 2) & ~3); | ||
317 | } /* pcm_play_dma_get_peak_buffer */ | ||
318 | |||
319 | #ifdef HAVE_RECORDING | 304 | #ifdef HAVE_RECORDING |
320 | /**************************************************************************** | 305 | /**************************************************************************** |
321 | ** Recording DMA transfer | 306 | ** Recording DMA transfer |