diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-07-25 14:03:44 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-07-25 14:07:41 +0000 |
commit | e532714d1f76ccdbd1dcfeb3b4579d324cb519c1 (patch) | |
tree | 588252314fd7910c49b60cece106d2c23e6fcef6 /firmware/target/arm/imx31/gigabeat-s | |
parent | 77ec7522485c0bf1f48669d6eca0d09366c3bbd7 (diff) | |
download | rockbox-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/imx31/gigabeat-s')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/pcm-gigabeat-s.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/pcm-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/pcm-gigabeat-s.c index 13dff6ecb5..955301b4da 100644 --- a/firmware/target/arm/imx31/gigabeat-s/pcm-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/pcm-gigabeat-s.c | |||
@@ -224,34 +224,6 @@ void pcm_play_dma_stop(void) | |||
224 | play_stop_pcm(); | 224 | play_stop_pcm(); |
225 | } | 225 | } |
226 | 226 | ||
227 | /* Return a pointer to the samples and the number of them in *count */ | ||
228 | const void * pcm_play_dma_get_peak_buffer(int *count) | ||
229 | { | ||
230 | static unsigned long dsa NOCACHEBSS_ATTR; | ||
231 | unsigned long addr; | ||
232 | long offs, size; | ||
233 | int oldstatus; | ||
234 | |||
235 | /* read burst dma source address register in channel context */ | ||
236 | sdma_read_words(&dsa, CHANNEL_CONTEXT_ADDR(DMA_PLAY_CH_NUM)+0x0b, 1); | ||
237 | |||
238 | oldstatus = disable_irq_save(); | ||
239 | addr = dsa; | ||
240 | offs = addr - (unsigned long)dma_play_bd.buf_addr; | ||
241 | size = dma_play_bd.mode.count; | ||
242 | restore_irq(oldstatus); | ||
243 | |||
244 | /* Be addresses are coherent (no buffer change during read) */ | ||
245 | if (offs >= 0 && offs < size) | ||
246 | { | ||
247 | *count = (size - offs) >> 2; | ||
248 | return (void *)((addr + 2) & ~3); | ||
249 | } | ||
250 | |||
251 | *count = 0; | ||
252 | return NULL; | ||
253 | } | ||
254 | |||
255 | void * pcm_dma_addr(void *addr) | 227 | void * pcm_dma_addr(void *addr) |
256 | { | 228 | { |
257 | return (void *)addr_virt_to_phys((unsigned long)addr); | 229 | return (void *)addr_virt_to_phys((unsigned long)addr); |