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; -}