diff --git a/ports/atmel-samd/audio_dma.c b/ports/atmel-samd/audio_dma.c index 6b5eeddcca..a34d5eca48 100644 --- a/ports/atmel-samd/audio_dma.c +++ b/ports/atmel-samd/audio_dma.c @@ -261,6 +261,7 @@ void audio_dma_stop(audio_dma_t* dma) { dma_disable_channel(dma->dma_channel); disable_event_channel(dma->event_channel); MP_STATE_PORT(playing_audio)[dma->dma_channel] = NULL; + audio_dma_state[dma->dma_channel] = NULL; dma->dma_channel = AUDIO_DMA_CHANNEL_COUNT; }