diff options
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 */ |