Fix yellow from e532714d1f

Change-Id: I4f49e93fc1efa78874fb76de6a436ad1fc894cc5
This commit is contained in:
Aidan MacDonald 2021-07-25 15:22:33 +01:00
parent e532714d1f
commit 148fac6f34
2 changed files with 0 additions and 20 deletions

View file

@ -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 */