settings_list: apply playback freq changes only when current sink is builtin

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit f3431680518401c395ed95528f262a46f9fb61d7
Author: mojyack <[email protected]>
Date:   Fri Feb 13 14:04:22 2026 +0900

    settings_list: apply playback freq changes only when current sink is builtin
    
    Change-Id: I1410b9fef621be31676f10269fdb07d31d827acb

diff --git a/apps/settings_list.c b/apps/settings_list.c
index 10b56655f8..e0c18dcee3 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -31,6 +31,7 @@
 #include "button.h"
 #include "backlight.h"
 #include "sound.h"
+#include "pcm_sink.h"
 #include "settings.h"
 #include "rbpaths.h"
 #include "settings_list.h"
@@ -758,7 +759,8 @@ static int32_t getlang_freq_unit_0_is_auto(int value, int unit)
 
 static void playback_frequency_callback(int sample_rate_hz)
 {
-    audio_set_playback_frequency(sample_rate_hz);
+    if (pcm_current_sink() == PCM_SINK_BUILTIN)
+        audio_set_playback_frequency(sample_rate_hz);
 }
 #endif /* HAVE_PLAY_FREQ */
 
-- 
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.