diff options
Diffstat (limited to 'firmware/target/coldfire/pcm-coldfire.c')
-rw-r--r-- | firmware/target/coldfire/pcm-coldfire.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/firmware/target/coldfire/pcm-coldfire.c b/firmware/target/coldfire/pcm-coldfire.c index c45219297c..36eb00c31b 100644 --- a/firmware/target/coldfire/pcm-coldfire.c +++ b/firmware/target/coldfire/pcm-coldfire.c | |||
@@ -301,21 +301,6 @@ void DMA0(void) | |||
301 | /* else inished playing */ | 301 | /* else inished playing */ |
302 | } /* DMA0 */ | 302 | } /* DMA0 */ |
303 | 303 | ||
304 | const void * pcm_play_dma_get_peak_buffer(int *count) | ||
305 | { | ||
306 | unsigned long addr, cnt; | ||
307 | |||
308 | /* Make sure interrupt doesn't change the second value after we read the | ||
309 | * first value. */ | ||
310 | int level = set_irq_level(DMA_IRQ_LEVEL); | ||
311 | addr = SAR0; | ||
312 | cnt = BCR0; | ||
313 | restore_irq(level); | ||
314 | |||
315 | *count = (cnt & 0xffffff) >> 2; | ||
316 | return (void *)((addr + 2) & ~3); | ||
317 | } /* pcm_play_dma_get_peak_buffer */ | ||
318 | |||
319 | #ifdef HAVE_RECORDING | 304 | #ifdef HAVE_RECORDING |
320 | /**************************************************************************** | 305 | /**************************************************************************** |
321 | ** Recording DMA transfer | 306 | ** Recording DMA transfer |