summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-07-25 14:03:44 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-07-25 14:07:41 +0000
commite532714d1f76ccdbd1dcfeb3b4579d324cb519c1 (patch)
tree588252314fd7910c49b60cece106d2c23e6fcef6 /firmware/target/arm/tms320dm320
parent77ec7522485c0bf1f48669d6eca0d09366c3bbd7 (diff)
downloadrockbox-e532714d1f76ccdbd1dcfeb3b4579d324cb519c1.tar.gz
rockbox-e532714d1f76ccdbd1dcfeb3b4579d324cb519c1.zip
pcm: Remove unused function pcm_play_dma_get_peak_buffer()
Change-Id: Ifd20fb14a22489cdb99154c01f69809a1e70d0c5
Diffstat (limited to 'firmware/target/arm/tms320dm320')
-rw-r--r--firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c6
-rw-r--r--firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c16
-rw-r--r--firmware/target/arm/tms320dm320/sansa-connect/pcm-sansaconnect.c16
3 files changed, 0 insertions, 38 deletions
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c b/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c
index d5e30ad73b..fa1eb2481f 100644
--- a/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c
+++ b/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c
@@ -52,12 +52,6 @@ void pcm_play_dma_postinit(void)
52// dsp_wake(); 52// dsp_wake();
53} 53}
54 54
55const void * pcm_play_dma_get_peak_buffer(int *count)
56{
57 (void) count;
58 return 0;
59}
60
61void pcm_dma_apply_settings(void) 55void pcm_dma_apply_settings(void)
62{ 56{
63 audiohw_set_frequency(pcm_fsel); 57 audiohw_set_frequency(pcm_fsel);
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;
diff --git a/firmware/target/arm/tms320dm320/sansa-connect/pcm-sansaconnect.c b/firmware/target/arm/tms320dm320/sansa-connect/pcm-sansaconnect.c
index f9f19a8045..bda000e68f 100644
--- a/firmware/target/arm/tms320dm320/sansa-connect/pcm-sansaconnect.c
+++ b/firmware/target/arm/tms320dm320/sansa-connect/pcm-sansaconnect.c
@@ -42,22 +42,6 @@ void pcm_play_dma_postinit(void)
42 audiohw_postinit(); 42 audiohw_postinit();
43} 43}
44 44
45/* Return the current location in the SDRAM to SARAM transfer along with the
46 * number of bytes read in the current buffer (count). There is latency with
47 * this method equivalent to ~ the size of the SARAM buffer since there is
48 * another buffer between your ears and this calculation, but this works for
49 * key clicks and an approximate peak meter.
50 */
51const void * pcm_play_dma_get_peak_buffer(int *count)
52{
53 int cnt = DSP_(_sdem_level);
54
55 unsigned long addr = (unsigned long) start + cnt;
56
57 *count = (cnt & 0xFFFFF) >> 1;
58 return (void *)((addr + 2) & ~3);
59}
60
61void pcm_play_dma_init(void) 45void pcm_play_dma_init(void)
62{ 46{
63 /* GIO16 is DSP/AIC3X CLK */ 47 /* GIO16 is DSP/AIC3X CLK */