summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/pcm-as3525.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-11-11 23:20:19 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-11-12 15:59:09 +0000
commit388adff3cc4ab8584c2c99f9bc5ad7e309281d5e (patch)
tree8b05c374e6ace0ebf7c51641eff56e941de27df4 /firmware/target/arm/as3525/pcm-as3525.c
parent1a68856f52f1b6dc89863758404e54c744fcf53a (diff)
downloadrockbox-388adff3cc.tar.gz
rockbox-388adff3cc.tar.bz2
rockbox-388adff3cc.zip
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
Diffstat (limited to 'firmware/target/arm/as3525/pcm-as3525.c')
-rw-r--r--firmware/target/arm/as3525/pcm-as3525.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/firmware/target/arm/as3525/pcm-as3525.c b/firmware/target/arm/as3525/pcm-as3525.c
index 90b6aabd7c..dfbda388be 100644
--- a/firmware/target/arm/as3525/pcm-as3525.c
+++ b/firmware/target/arm/as3525/pcm-as3525.c
@@ -200,17 +200,6 @@ void pcm_dma_apply_settings(void)
0x01ffffff);
}
-size_t pcm_get_bytes_waiting(void)
-{
- int oldstatus = disable_irq_save();
- size_t addr = DMAC_CH_SRC_ADDR(0);
- size_t start_addr = (size_t)dma_start_addr;
- size_t start_size = dma_start_size;
- restore_interrupt(oldstatus);
-
- return start_size - addr + start_addr;
-}
-
const void * pcm_play_dma_get_peak_buffer(int *count)
{
int oldstatus = disable_irq_save();