summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2006-02-17 19:56:22 +0000
committerDan Everton <dan@iocaine.org>2006-02-17 19:56:22 +0000
commit5a1d77de83b7a6ba20e70d107ed1b5d6d0e3ce15 (patch)
treeafad30c0b67486a56640e78425972861436dc457 /apps/settings.c
parenteaa7e22d98f28fd4fc650ae272cf15afcb2456f9 (diff)
Reduce CPU usage while changing EQ by only updating the coefficients of the band being modified.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8718 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 0c62fd2201..4e25bebd95 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -924,6 +924,7 @@ void sound_settings_apply(void)
void settings_apply(void)
{
char buf[64];
+ int i;
sound_settings_apply();
@@ -1052,7 +1053,11 @@ void settings_apply(void)
audio_set_crossfade(global_settings.crossfade);
dsp_set_replaygain(true);
dsp_set_crossfeed(global_settings.crossfeed);
- dsp_eq_update_data(global_settings.eq_enabled);
+
+ /* Update all EQ bands */
+ for(i = 0; i < 5; i++) {
+ dsp_eq_update_data(global_settings.eq_enabled, i);
+ }
#endif
#ifdef HAVE_SPDIF_POWER