pcm_mixer: fix auto frequency switch stopping playback on some targets

Regression from cb04b816. Restores sound by re‑adding
pcm_play_stop, previously invoked in mixer_reset.

Known affected targets: x1600 hosted hiby port (Hiby R1, Hiby R3 Pro II)
Discussion: https://forums.rockbox.org/index.php/topic,55125.msg258435.html#msg258435

Change-Id: I5fadac0b47f609e38baad5c7151354ee8f7e9871
This commit is contained in:
Roman Artiukhin 2026-06-09 12:39:37 +03:00
parent 513365713a
commit c5c39a3fdb

View file

@ -522,6 +522,9 @@ void mixer_set_frequency(unsigned int samplerate)
if(pcm_get_frequency() == samplerate)
return;
pcm_play_stop();
idle_counter = 0;
pcm_set_frequency(samplerate);
mixer_handle_sampr_change(SAMPR_NUM(pcm_get_frequency()));
if (pcm_is_initialized())