summaryrefslogtreecommitdiffstats
path: root/apps/settings.c
diff options
context:
space:
mode:
authorSean Bartell <wingedtachikoma@gmail.com>2011-08-21 17:18:09 -0400
committerNils Wallménius <nils@rockbox.org>2012-04-27 16:33:27 +0200
commita6dea9e13d6e53dacef183bd3cbbb363c2fa2073 (patch)
tree8a0c3b160791698a2a5dcdd7f9226876685243ec /apps/settings.c
parent79a667d3e247f0bf0fdbfb96b57f45d0403ca21c (diff)
downloadrockbox-a6dea9e13d6e53dacef183bd3cbbb363c2fa2073.tar.gz
rockbox-a6dea9e13d6e53dacef183bd3cbbb363c2fa2073.zip
rbcodec refactoring: dsp_set_eq_coefs
dsp_set_eq_coefs now has parameters for the band settings, so it doesn't need to access global_settings. Change-Id: I29ac19fc353b15a79cb25f0e45132aef0881e4c9 Reviewed-on: http://gerrit.rockbox.org/138 Reviewed-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index a267f51765..acc38c2388 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -988,8 +988,11 @@ void settings_apply(bool read_disk)
/* Configure software equalizer, hardware eq is handled in audio_init() */
dsp_set_eq(global_settings.eq_enabled);
dsp_set_eq_precut(global_settings.eq_precut);
+
for(int i = 0; i < 5; i++) {
- dsp_set_eq_coefs(i);
+ dsp_set_eq_coefs(i, global_settings.eq_band_settings[i].cutoff,
+ global_settings.eq_band_settings[i].q,
+ global_settings.eq_band_settings[i].gain);
}
dsp_dither_enable(global_settings.dithering_enabled);