as3525: PCM driver init references the sink directly

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit ae724ba5f3a0f48206a5f92cb6eb6bcbfbfe15a9
Author: Solomon Peachy <[email protected]>
Date:   Wed Mar 25 08:44:00 2026 -0400

    as3525:  PCM driver init references the sink directly
    
    Change-Id: I42e8f04214790676d6f177669cdeda58fa8e8c28

diff --git a/firmware/target/arm/as3525/pcm-as3525.c b/firmware/target/arm/as3525/pcm-as3525.c
index a5a9ee0cee..b72070b312 100644
--- a/firmware/target/arm/as3525/pcm-as3525.c
+++ b/firmware/target/arm/as3525/pcm-as3525.c
@@ -189,7 +189,7 @@ static void sink_dma_init(void)
     I2SOUT_CONTROL = (1<<6) | (1<<3);  /* enable dma, stereo */
 
     audiohw_preinit();
-    sink_set_freq(HW_SAMPR_DEFAULT);
+    sink_set_freq(builtin_pcm_sink.caps.default_freq);
 }
 
 #ifdef HAVE_PCM_DMA_ADDRESS
-- 
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.