diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2005-12-05 22:35:18 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2005-12-05 22:35:18 +0000 |
commit | 5c3546ccbb14b576fd5eef3815bdfc97047de422 (patch) | |
tree | 2ad5d0d7991d47eeb1a504804f16b2a3c6fbbaf7 | |
parent | 3776a844ac14f1c389e81fe1ed65bc9526f3abad (diff) | |
download | rockbox-5c3546ccbb14b576fd5eef3815bdfc97047de422.tar.gz rockbox-5c3546ccbb14b576fd5eef3815bdfc97047de422.zip |
moved crossfeed from the Playback menu to Sound Settings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8161 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/settings_menu.c | 13 | ||||
-rw-r--r-- | apps/sound_menu.c | 20 |
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 | ||
1224 | static 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 | |||
1236 | static bool crossfade(void) | 1224 | static 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 | ||
47 | int selected_setting; /* Used by the callback */ | 50 | int selected_setting; /* Used by the callback */ |
48 | void dec_sound_formatter(char *buffer, int buffer_size, int val, const char * unit) | 51 | void 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 | ||
109 | static 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) |
106 | static bool loudness(void) | 123 | static 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 |