summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-07-25 14:03:44 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-07-25 14:07:41 +0000
commite532714d1f76ccdbd1dcfeb3b4579d324cb519c1 (patch)
tree588252314fd7910c49b60cece106d2c23e6fcef6 /firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
parent77ec7522485c0bf1f48669d6eca0d09366c3bbd7 (diff)
downloadrockbox-e532714d1f76ccdbd1dcfeb3b4579d324cb519c1.tar.gz
rockbox-e532714d1f76ccdbd1dcfeb3b4579d324cb519c1.zip
pcm: Remove unused function pcm_play_dma_get_peak_buffer()
Change-Id: Ifd20fb14a22489cdb99154c01f69809a1e70d0c5
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c b/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
index 401d568a97..8c70e68b64 100644
--- a/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
+++ b/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
@@ -191,25 +191,3 @@ static int get_dma_count(void)
191 191
192 return count; 192 return count;
193} 193}
194
195const void * pcm_play_dma_get_peak_buffer(int *count)
196{
197 int flags = disable_irq_save();
198
199 const void* addr;
200 if(REG_DMAC_DCCSR(DMA_AIC_TX_CHANNEL) & DMAC_DCCSR_EN)
201 {
202 int bytes = get_dma_count();
203 *count = bytes >> 2;
204 addr = (const void*)((int)(playback_address + bytes + 2) & ~3);
205 }
206 else
207 {
208 *count = 0;
209 addr = NULL;
210 }
211
212 restore_irq(flags);
213
214 return addr;
215}