diff options
Diffstat (limited to 'firmware')
-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 | } | ||