diff options
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c | 22 |
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 | |||
195 | const 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 | } | ||