diff options
Diffstat (limited to 'apps/eq_menu.c')
-rw-r--r-- | apps/eq_menu.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/eq_menu.c b/apps/eq_menu.c index 61d38f473c..2e04a88f9a 100644 --- a/apps/eq_menu.c +++ b/apps/eq_menu.c | |||
@@ -147,11 +147,13 @@ static bool eq_enabled(void) | |||
147 | bool result = set_bool(str(LANG_EQUALIZER_ENABLED), | 147 | bool result = set_bool(str(LANG_EQUALIZER_ENABLED), |
148 | &global_settings.eq_enabled); | 148 | &global_settings.eq_enabled); |
149 | 149 | ||
150 | dsp_eq_set(global_settings.eq_enabled, global_settings.eq_precut); | 150 | dsp_set_eq(global_settings.eq_enabled); |
151 | |||
152 | dsp_set_eq_precut(global_settings.eq_precut); | ||
151 | 153 | ||
152 | /* Update all bands */ | 154 | /* Update all bands */ |
153 | for(i = 0; i < 5; i++) { | 155 | for(i = 0; i < 5; i++) { |
154 | dsp_eq_update_filter_coefs(i); | 156 | dsp_set_eq_coefs(i); |
155 | } | 157 | } |
156 | 158 | ||
157 | return result; | 159 | return result; |
@@ -160,11 +162,9 @@ static bool eq_enabled(void) | |||
160 | static bool eq_precut(void) | 162 | static bool eq_precut(void) |
161 | { | 163 | { |
162 | bool result = set_int(str(LANG_EQUALIZER_PRECUT), str(LANG_UNIT_DB), | 164 | bool result = set_int(str(LANG_EQUALIZER_PRECUT), str(LANG_UNIT_DB), |
163 | UNIT_DB, &global_settings.eq_precut, NULL, 5, 0, 240, | 165 | UNIT_DB, &global_settings.eq_precut, dsp_set_eq_precut, 5, 0, 240, |
164 | eq_precut_format); | 166 | eq_precut_format); |
165 | 167 | ||
166 | dsp_eq_set(global_settings.eq_enabled, global_settings.eq_precut); | ||
167 | |||
168 | return result; | 168 | return result; |
169 | } | 169 | } |
170 | 170 | ||
@@ -178,7 +178,7 @@ static bool eq_set_band ## band ## _center(void) \ | |||
178 | bool result = set_int(str(LANG_EQUALIZER_BAND_CENTER), "Hertz", \ | 178 | bool result = set_int(str(LANG_EQUALIZER_BAND_CENTER), "Hertz", \ |
179 | UNIT_HERTZ, &global_settings.eq_band ## band ## _cutoff, NULL, \ | 179 | UNIT_HERTZ, &global_settings.eq_band ## band ## _cutoff, NULL, \ |
180 | EQ_CUTOFF_STEP, EQ_CUTOFF_MIN, EQ_CUTOFF_MAX, NULL); \ | 180 | EQ_CUTOFF_STEP, EQ_CUTOFF_MIN, EQ_CUTOFF_MAX, NULL); \ |
181 | dsp_eq_update_filter_coefs(band); \ | 181 | dsp_set_eq_coefs(band); \ |
182 | return result; \ | 182 | return result; \ |
183 | } | 183 | } |
184 | 184 | ||
@@ -188,7 +188,7 @@ static bool eq_set_band ## band ## _cutoff(void) \ | |||
188 | bool result = set_int(str(LANG_EQUALIZER_BAND_CUTOFF), "Hertz", \ | 188 | bool result = set_int(str(LANG_EQUALIZER_BAND_CUTOFF), "Hertz", \ |
189 | UNIT_HERTZ, &global_settings.eq_band ## band ## _cutoff, NULL, \ | 189 | UNIT_HERTZ, &global_settings.eq_band ## band ## _cutoff, NULL, \ |
190 | EQ_CUTOFF_STEP, EQ_CUTOFF_MIN, EQ_CUTOFF_MAX, NULL); \ | 190 | EQ_CUTOFF_STEP, EQ_CUTOFF_MIN, EQ_CUTOFF_MAX, NULL); \ |
191 | dsp_eq_update_filter_coefs(band); \ | 191 | dsp_set_eq_coefs(band); \ |
192 | return result; \ | 192 | return result; \ |
193 | } | 193 | } |
194 | 194 | ||
@@ -198,7 +198,7 @@ static bool eq_set_band ## band ## _q(void) \ | |||
198 | bool result = set_int(str(LANG_EQUALIZER_BAND_Q), "Q", UNIT_INT, \ | 198 | bool result = set_int(str(LANG_EQUALIZER_BAND_Q), "Q", UNIT_INT, \ |
199 | &global_settings.eq_band ## band ## _q, NULL, \ | 199 | &global_settings.eq_band ## band ## _q, NULL, \ |
200 | EQ_Q_STEP, EQ_Q_MIN, EQ_Q_MAX, eq_q_format); \ | 200 | EQ_Q_STEP, EQ_Q_MIN, EQ_Q_MAX, eq_q_format); \ |
201 | dsp_eq_update_filter_coefs(band); \ | 201 | dsp_set_eq_coefs(band); \ |
202 | return result; \ | 202 | return result; \ |
203 | } | 203 | } |
204 | 204 | ||
@@ -208,7 +208,7 @@ static bool eq_set_band ## band ## _gain(void) \ | |||
208 | bool result = set_int("Band " #band, str(LANG_UNIT_DB), UNIT_DB, \ | 208 | bool result = set_int("Band " #band, str(LANG_UNIT_DB), UNIT_DB, \ |
209 | &global_settings.eq_band ## band ## _gain, NULL, \ | 209 | &global_settings.eq_band ## band ## _gain, NULL, \ |
210 | EQ_GAIN_STEP, EQ_GAIN_MIN, EQ_GAIN_MAX, eq_gain_format); \ | 210 | EQ_GAIN_STEP, EQ_GAIN_MIN, EQ_GAIN_MAX, eq_gain_format); \ |
211 | dsp_eq_update_filter_coefs(band); \ | 211 | dsp_set_eq_coefs(band); \ |
212 | return result; \ | 212 | return result; \ |
213 | } | 213 | } |
214 | 214 | ||
@@ -693,7 +693,7 @@ bool eq_menu_graphical(void) | |||
693 | 693 | ||
694 | /* Update the filter if the user changed something */ | 694 | /* Update the filter if the user changed something */ |
695 | if (has_changed) { | 695 | if (has_changed) { |
696 | dsp_eq_update_filter_coefs(current_band); | 696 | dsp_set_eq_coefs(current_band); |
697 | has_changed = false; | 697 | has_changed = false; |
698 | } | 698 | } |
699 | } | 699 | } |