diff options
Diffstat (limited to 'firmware/target/arm/as3525/pcm-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/pcm-as3525.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/firmware/target/arm/as3525/pcm-as3525.c b/firmware/target/arm/as3525/pcm-as3525.c index dfbda388be..e480140497 100644 --- a/firmware/target/arm/as3525/pcm-as3525.c +++ b/firmware/target/arm/as3525/pcm-as3525.c | |||
@@ -200,18 +200,6 @@ void pcm_dma_apply_settings(void) | |||
200 | 0x01ffffff); | 200 | 0x01ffffff); |
201 | } | 201 | } |
202 | 202 | ||
203 | const void * pcm_play_dma_get_peak_buffer(int *count) | ||
204 | { | ||
205 | int oldstatus = disable_irq_save(); | ||
206 | size_t addr = DMAC_CH_SRC_ADDR(0); | ||
207 | size_t start_addr = (size_t)dma_start_addr; | ||
208 | size_t start_size = dma_start_size; | ||
209 | restore_interrupt(oldstatus); | ||
210 | |||
211 | *count = (start_size - addr + start_addr) >> 2; | ||
212 | return (void*)AS3525_UNCACHED_ADDR(addr); | ||
213 | } | ||
214 | |||
215 | #ifdef HAVE_PCM_DMA_ADDRESS | 203 | #ifdef HAVE_PCM_DMA_ADDRESS |
216 | void * pcm_dma_addr(void *addr) | 204 | void * pcm_dma_addr(void *addr) |
217 | { | 205 | { |