summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c14
-rw-r--r--firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c14
2 files changed, 0 insertions, 28 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c b/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c
index 1ce0b5ad5f..83325e09ef 100644
--- a/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c
@@ -203,20 +203,6 @@ static int get_dma_count(void)
return count;
}
-size_t pcm_get_bytes_waiting(void)
-{
- int bytes, flags = disable_irq_save();
-
- if(REG_DMAC_DCCSR(DMA_AIC_TX_CHANNEL) & DMAC_DCCSR_EN)
- bytes = get_dma_count() & ~3;
- else
- bytes = 0;
-
- restore_irq(flags);
-
- return bytes;
-}
-
const void * pcm_play_dma_get_peak_buffer(int *count)
{
int flags = disable_irq_save();
diff --git a/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c b/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
index 4a4f3020bb..401d568a97 100644
--- a/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
+++ b/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
@@ -192,20 +192,6 @@ static int get_dma_count(void)
return count;
}
-size_t pcm_get_bytes_waiting(void)
-{
- int bytes, flags = disable_irq_save();
-
- if(REG_DMAC_DCCSR(DMA_AIC_TX_CHANNEL) & DMAC_DCCSR_EN)
- bytes = get_dma_count() & ~3;
- else
- bytes = 0;
-
- restore_irq(flags);
-
- return bytes;
-}
-
const void * pcm_play_dma_get_peak_buffer(int *count)
{
int flags = disable_irq_save();