summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2006-03-27 21:20:35 +0000
committerDan Everton <dan@iocaine.org>2006-03-27 21:20:35 +0000
commit91db36884525ee6c2822ff8ccbb7ac9df04d2890 (patch)
treebe0d204626e9d7659df9b19ba0ee6e9c26d3726c /apps/settings.c
parent7eb4d6c3b88e41c4ab9716be493697b244856cbb (diff)
downloadrockbox-91db36884525ee6c2822ff8ccbb7ac9df04d2890.tar.gz
rockbox-91db36884525ee6c2822ff8ccbb7ac9df04d2890.zip
Add precut setting for the equalizer and add some more comments to the eq menu code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9298 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 6fe9665086..5552eaa70c 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -570,6 +570,10 @@ static const struct bit_entry hd_bits[] =
570 {1, S_O(tagcache_ram), 0, "tagcache_ram", off_on }, 570 {1, S_O(tagcache_ram), 0, "tagcache_ram", off_on },
571#endif 571#endif
572 572
573#if (CONFIG_CODEC == SWCODEC)
574 {8, S_O(eq_precut), 0, "eq precut", NULL },
575#endif
576
573 /* If values are just added to the end, no need to bump the version. */ 577 /* If values are just added to the end, no need to bump the version. */
574 /* new stuff to be added at the end */ 578 /* new stuff to be added at the end */
575 579
@@ -1125,10 +1129,11 @@ void settings_apply(void)
1125 audio_set_crossfade(global_settings.crossfade); 1129 audio_set_crossfade(global_settings.crossfade);
1126 dsp_set_replaygain(true); 1130 dsp_set_replaygain(true);
1127 dsp_set_crossfeed(global_settings.crossfeed); 1131 dsp_set_crossfeed(global_settings.crossfeed);
1128 1132
1133 dsp_eq_set(global_settings.eq_enabled, global_settings.eq_precut);
1129 /* Update all EQ bands */ 1134 /* Update all EQ bands */
1130 for(i = 0; i < 5; i++) { 1135 for(i = 0; i < 5; i++) {
1131 dsp_eq_update_data(global_settings.eq_enabled, i); 1136 dsp_eq_update_filter_coefs(i);
1132 } 1137 }
1133#endif 1138#endif
1134 1139