mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
settings_list: apply playback freq changes only when current sink is builtin
Change-Id: I1410b9fef621be31676f10269fdb07d31d827acb
This commit is contained in:
parent
38d978a512
commit
f343168051
1 changed files with 3 additions and 1 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue