summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c')
-rw-r--r--firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c
index 5ce5a8f399..fda8615e5a 100644
--- a/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c
+++ b/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c
@@ -46,22 +46,6 @@ void pcm_play_dma_postinit(void)
46 audiohw_postinit(); 46 audiohw_postinit();
47} 47}
48 48
49/* Return the current location in the SDRAM to SARAM transfer along with the
50 * number of bytes read in the current buffer (count). There is latency with
51 * this method equivalent to ~ the size of the SARAM buffer since there is
52 * another buffer between your ears and this calculation, but this works for
53 * key clicks and an approximate peak meter.
54 */
55const void * pcm_play_dma_get_peak_buffer(int *count)
56{
57 int cnt = DSP_(_sdem_level);
58
59 unsigned long addr = (unsigned long) start + cnt;
60
61 *count = (cnt & 0xFFFFF) >> 1;
62 return (void *)((addr + 2) & ~3);
63}
64
65void pcm_play_dma_init(void) 49void pcm_play_dma_init(void)
66{ 50{
67 IO_INTC_IRQ0 = INTR_IRQ0_IMGBUF; 51 IO_INTC_IRQ0 = INTR_IRQ0_IMGBUF;