From 91db36884525ee6c2822ff8ccbb7ac9df04d2890 Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Mon, 27 Mar 2006 21:20:35 +0000 Subject: 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 --- apps/settings.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'apps/settings.c') 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[] = {1, S_O(tagcache_ram), 0, "tagcache_ram", off_on }, #endif +#if (CONFIG_CODEC == SWCODEC) + {8, S_O(eq_precut), 0, "eq precut", NULL }, +#endif + /* If values are just added to the end, no need to bump the version. */ /* new stuff to be added at the end */ @@ -1125,10 +1129,11 @@ void settings_apply(void) audio_set_crossfade(global_settings.crossfade); dsp_set_replaygain(true); dsp_set_crossfeed(global_settings.crossfeed); - + + dsp_eq_set(global_settings.eq_enabled, global_settings.eq_precut); /* Update all EQ bands */ for(i = 0; i < 5; i++) { - dsp_eq_update_data(global_settings.eq_enabled, i); + dsp_eq_update_filter_coefs(i); } #endif -- cgit v1.2.3