summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/settings_menu.c13
-rw-r--r--apps/sound_menu.c20
2 files changed, 20 insertions, 13 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 88b246fec4..ca352fd8ff 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -1221,18 +1221,6 @@ static bool replaygain_settings_menu(void)
1221 return result; 1221 return result;
1222} 1222}
1223 1223
1224static bool crossfeed(void)
1225{
1226 bool result = set_bool_options(str(LANG_CROSSFEED),
1227 &global_settings.crossfeed,
1228 STR(LANG_ON),
1229 STR(LANG_OFF),
1230 NULL);
1231
1232 dsp_set_crossfeed(global_settings.crossfeed);
1233 return result;
1234}
1235
1236static bool crossfade(void) 1224static bool crossfade(void)
1237{ 1225{
1238 static const struct opt_items names[] = { 1226 static const struct opt_items names[] = {
@@ -1384,7 +1372,6 @@ static bool playback_settings_menu(void)
1384#if CONFIG_CODEC == SWCODEC 1372#if CONFIG_CODEC == SWCODEC
1385 { ID2P(LANG_CROSSFADE), crossfade_settings_menu }, 1373 { ID2P(LANG_CROSSFADE), crossfade_settings_menu },
1386 { ID2P(LANG_REPLAYGAIN), replaygain_settings_menu }, 1374 { ID2P(LANG_REPLAYGAIN), replaygain_settings_menu },
1387 { ID2P(LANG_CROSSFEED), crossfeed },
1388 { ID2P(LANG_BEEP), beep }, 1375 { ID2P(LANG_BEEP), beep },
1389#endif 1376#endif
1390#ifdef HAVE_SPDIF_POWER 1377#ifdef HAVE_SPDIF_POWER
diff --git a/apps/sound_menu.c b/apps/sound_menu.c
index 06887cf9d3..af1a2fdfee 100644
--- a/apps/sound_menu.c
+++ b/apps/sound_menu.c
@@ -43,6 +43,9 @@
43#include "mas.h" 43#include "mas.h"
44#endif 44#endif
45#include "splash.h" 45#include "splash.h"
46#if CONFIG_CODEC == SWCODEC
47#include "dsp.h"
48#endif
46 49
47int selected_setting; /* Used by the callback */ 50int selected_setting; /* Used by the callback */
48void dec_sound_formatter(char *buffer, int buffer_size, int val, const char * unit) 51void dec_sound_formatter(char *buffer, int buffer_size, int val, const char * unit)
@@ -102,6 +105,20 @@ static bool treble(void)
102 return set_sound(str(LANG_TREBLE), &global_settings.treble, SOUND_TREBLE); 105 return set_sound(str(LANG_TREBLE), &global_settings.treble, SOUND_TREBLE);
103} 106}
104 107
108#if CONFIG_CODEC == SWCODEC
109static bool crossfeed(void)
110{
111 bool result = set_bool_options(str(LANG_CROSSFEED),
112 &global_settings.crossfeed,
113 STR(LANG_ON),
114 STR(LANG_OFF),
115 NULL);
116
117 dsp_set_crossfeed(global_settings.crossfeed);
118 return result;
119}
120#endif
121
105#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) 122#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
106static bool loudness(void) 123static bool loudness(void)
107{ 124{
@@ -375,6 +392,9 @@ bool sound_menu(void)
375 { ID2P(LANG_BALANCE), balance }, 392 { ID2P(LANG_BALANCE), balance },
376 { ID2P(LANG_CHANNEL_MENU), chanconf }, 393 { ID2P(LANG_CHANNEL_MENU), chanconf },
377 { ID2P(LANG_STEREO_WIDTH), stereo_width }, 394 { ID2P(LANG_STEREO_WIDTH), stereo_width },
395#if CONFIG_CODEC == SWCODEC
396 { ID2P(LANG_CROSSFEED), crossfeed },
397#endif
378#ifdef HAVE_UDA1380 398#ifdef HAVE_UDA1380
379 { ID2P(LANG_SCALING_MODE), sound_scaling }, 399 { ID2P(LANG_SCALING_MODE), sound_scaling },
380#endif 400#endif