summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-07-25 15:22:33 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-07-25 15:22:33 +0100
commit148fac6f34217a9576e72104009122d6f9eab2ba (patch)
treeab80c53d7f4cf85a543ba59b9be1bb82d1457086 /firmware/target
parente532714d1f76ccdbd1dcfeb3b4579d324cb519c1 (diff)
Fix yellow from e532714d1f
Change-Id: I4f49e93fc1efa78874fb76de6a436ad1fc894cc5
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/imx233/pcm-imx233.c1
-rw-r--r--firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c19
2 files changed, 0 insertions, 20 deletions
diff --git a/firmware/target/arm/imx233/pcm-imx233.c b/firmware/target/arm/imx233/pcm-imx233.c
index 4738485b3d..1588d2c874 100644
--- a/firmware/target/arm/imx233/pcm-imx233.c
+++ b/firmware/target/arm/imx233/pcm-imx233.c
@@ -42,7 +42,6 @@ __ENSURE_STRUCT_CACHE_FRIENDLY(struct pcm_dma_command_t)
static int dac_locked = 0;
static struct pcm_dma_command_t dac_dma;
-static bool dac_freezed = false;
static const void *dac_buf; /* current buffer */
static size_t dac_size; /* remaining size */
diff --git a/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c b/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c
index a56214f84b..178da0b153 100644
--- a/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c
@@ -184,25 +184,6 @@ 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;
-}
-
void audiohw_close(void)
{
/* TODO: prevent pop */