summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-07-25 15:35:09 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-07-25 14:36:47 +0000
commit05d4d6a4f2fa6237000ae554f9a13935e8822bd8 (patch)
tree051a6d88428c84d04de97bf84a5458f3ea46e37f /firmware
parent148fac6f34217a9576e72104009122d6f9eab2ba (diff)
Fix remaining yellow from e532714d1f
Change-Id: If0bdd1fb3c8ee3324562638bc4c4181357a8fd53
Diffstat (limited to 'firmware')
-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;
-}