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/mips/ingenic_jz47xx/pcm-jz4740.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/mips/ingenic_jz47xx/pcm-jz4740.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c b/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c index 83325e09ef..a56214f84b 100644 --- a/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c | |||
@@ -203,28 +203,6 @@ static int get_dma_count(void) | |||
203 | return count; | 203 | return count; |
204 | } | 204 | } |
205 | 205 | ||
206 | const void * pcm_play_dma_get_peak_buffer(int *count) | ||
207 | { | ||
208 | int flags = disable_irq_save(); | ||
209 | |||
210 | const void* addr; | ||
211 | if(REG_DMAC_DCCSR(DMA_AIC_TX_CHANNEL) & DMAC_DCCSR_EN) | ||
212 | { | ||
213 | int bytes = get_dma_count(); | ||
214 | *count = bytes >> 2; | ||
215 | addr = (const void*)((int)(playback_address + bytes + 2) & ~3); | ||
216 | } | ||
217 | else | ||
218 | { | ||
219 | *count = 0; | ||
220 | addr = NULL; | ||
221 | } | ||
222 | |||
223 | restore_irq(flags); | ||
224 | |||
225 | return addr; | ||
226 | } | ||
227 | |||
228 | void audiohw_close(void) | 206 | void audiohw_close(void) |
229 | { | 207 | { |
230 | /* TODO: prevent pop */ | 208 | /* TODO: prevent pop */ |