From b53c8e1f806ddfc80c706cfc5c2e1399230b57fb Mon Sep 17 00:00:00 2001 From: Mark Thompson <129641948+NotherNgineer@users.noreply.github.com> Date: Mon, 18 Mar 2024 23:58:23 -0500 Subject: [PATCH] Stop audio DMA in baseband::shutdown() (#2011) --- firmware/baseband/baseband.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/baseband/baseband.cpp b/firmware/baseband/baseband.cpp index 02c14b7d..63df5944 100644 --- a/firmware/baseband/baseband.cpp +++ b/firmware/baseband/baseband.cpp @@ -27,6 +27,7 @@ #include "portapack_dma.hpp" #include "gpdma.hpp" +#include "audio_dma.hpp" static void init() { // Audio DMA initialization was moved to baseband proc's that actually use DMA audio, to save memory. @@ -65,6 +66,8 @@ void __late_init(void) { void _default_exit(void) { // TODO: Is this complete? + audio::dma::disable(); + nvicDisableVector(DMA_IRQn); chSysDisable();