diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-07-25 15:35:09 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-07-25 14:36:47 +0000 |
commit | 05d4d6a4f2fa6237000ae554f9a13935e8822bd8 (patch) | |
tree | 051a6d88428c84d04de97bf84a5458f3ea46e37f /firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c | |
parent | 148fac6f34217a9576e72104009122d6f9eab2ba (diff) | |
download | rockbox-05d4d6a4f2fa6237000ae554f9a13935e8822bd8.tar.gz rockbox-05d4d6a4f2fa6237000ae554f9a13935e8822bd8.zip |
Fix remaining yellow from e532714d1f
Change-Id: If0bdd1fb3c8ee3324562638bc4c4181357a8fd53
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c | 19 |
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) | |||
172 | 172 | ||
173 | restore_irq(flags); | 173 | restore_irq(flags); |
174 | } | 174 | } |
175 | |||
176 | static int get_dma_count(void) | ||
177 | { | ||
178 | int count = REG_DMAC_DTCR(DMA_AIC_TX_CHANNEL); | ||
179 | switch(REG_DMAC_DCMD(DMA_AIC_TX_CHANNEL) & DMAC_DCMD_DS_MASK) | ||
180 | { | ||
181 | case DMAC_DCMD_DS_16BIT: | ||
182 | count *= 2; | ||
183 | break; | ||
184 | case DMAC_DCMD_DS_32BIT: | ||
185 | count *= 4; | ||
186 | break; | ||
187 | case DMAC_DCMD_DS_16BYTE: | ||
188 | count *= 16; | ||
189 | break; | ||
190 | } | ||
191 | |||
192 | return count; | ||
193 | } | ||