pcm_mixer: Explicitly initialize the mixer frequency in the pcm init path

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 5ce96b84d87e6e270b62f0bf3a8897b4307477ee
Author: Solomon Peachy <[email protected]>
Date:   Sat Mar 28 08:43:40 2026 -0400

    pcm_mixer:  Explicitly initialize the mixer frequency in the pcm init path
    
    Change-Id: I5b79dbb0608ef182fd5592797c6211ce5299999c

diff --git a/firmware/pcm.c b/firmware/pcm.c
index 19c76a8a10..eebcf70e1c 100644
--- a/firmware/pcm.c
+++ b/firmware/pcm.c
@@ -266,6 +266,9 @@ void pcm_postinit(void)
         sink->ops.postinit();
         sink->pcm_is_ready = true;
     }
+
+    /* Ensure mixer is in a sane state */
+    mixer_set_frequency(pcm_get_frequency());
 }
 
 bool pcm_is_initialized(void)
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.