summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c b/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
index 59b086e4f8..098c28ecf5 100644
--- a/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
+++ b/firmware/target/mips/ingenic_jz47xx/pcm-jz4760.c
@@ -128,6 +128,8 @@ void DMA_CALLBACK(DMA_AIC_TX_CHANNEL)(void)
void pcm_play_dma_start(const void *addr, size_t size)
{
+ pcm_play_dma_stop();
+
__dmac_channel_enable_clk(DMA_AIC_TX_CHANNEL);
set_dma(addr, size);