From 05d4d6a4f2fa6237000ae554f9a13935e8822bd8 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 25 Jul 2021 15:35:09 +0100 Subject: Fix remaining yellow from e532714d1f Change-Id: If0bdd1fb3c8ee3324562638bc4c4181357a8fd53 --- firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'firmware/target') 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; -} -- cgit v1.2.3