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-jz4760.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c b/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
index 8c70e68b64..72bcbeccd0 100644
--- a/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
+++ b/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
@@ -172,22 +172,3 @@ void pcm_play_unlock(void)
restore_irq(flags);
}
-
-static int get_dma_count(void)
-{
- int count = REG_DMAC_DTCR(DMA_AIC_TX_CHANNEL);
- switch(REG_DMAC_DCMD(DMA_AIC_TX_CHANNEL) & DMAC_DCMD_DS_MASK)
- {
- case DMAC_DCMD_DS_16BIT:
- count *= 2;
- break;
- case DMAC_DCMD_DS_32BIT:
- count *= 4;
- break;
- case DMAC_DCMD_DS_16BYTE:
- count *= 16;
- break;
- }
-
- return count;
-}