From fe2d52cc7d0180acff26349f2904fba854de6fbc Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 30 Oct 2020 20:30:27 -0400 Subject: pcm: Get rid of pcm_play_pause() and associated APIs Nothing in the core has used it for some time. It's exported to the plugin API but the last plugins to use it were switched to the mixer API back in 2011. This allows us to get rid of pcm_play_dma_pause() from all audio drivers Change-Id: Ic3fa02592316f84963e41d792d1cabb436d1ff6b --- firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c | 12 ------------ firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c | 12 ------------ 2 files changed, 24 deletions(-) (limited to 'firmware/target/mips/ingenic_jz47xx') diff --git a/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c b/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c index ef2597ae69..1ce0b5ad5f 100644 --- a/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c @@ -184,18 +184,6 @@ void pcm_play_unlock(void) restore_irq(flags); } -void pcm_play_dma_pause(bool pause) -{ - int flags = disable_irq_save(); - - if(pause) - REG_DMAC_DCCSR(DMA_AIC_TX_CHANNEL) &= ~DMAC_DCCSR_EN; - else - REG_DMAC_DCCSR(DMA_AIC_TX_CHANNEL) |= DMAC_DCCSR_EN; - - restore_irq(flags); -} - static int get_dma_count(void) { int count = REG_DMAC_DTCR(DMA_AIC_TX_CHANNEL); diff --git a/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c b/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c index 098c28ecf5..4a4f3020bb 100644 --- a/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c +++ b/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c @@ -173,18 +173,6 @@ void pcm_play_unlock(void) restore_irq(flags); } -void pcm_play_dma_pause(bool pause) -{ - int flags = disable_irq_save(); - - if(pause) - REG_DMAC_DCCSR(DMA_AIC_TX_CHANNEL) &= ~DMAC_DCCSR_EN; - else - REG_DMAC_DCCSR(DMA_AIC_TX_CHANNEL) |= DMAC_DCCSR_EN; - - restore_irq(flags); -} - static int get_dma_count(void) { int count = REG_DMAC_DTCR(DMA_AIC_TX_CHANNEL); -- cgit v1.2.3