diff options
Diffstat (limited to 'apps/eq_menu.c')
-rw-r--r-- | apps/eq_menu.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/apps/eq_menu.c b/apps/eq_menu.c index 0743490723..7bd6e814ce 100644 --- a/apps/eq_menu.c +++ b/apps/eq_menu.c | |||
@@ -1004,13 +1004,10 @@ static bool eq_hw_set_band4_gain(void) | |||
1004 | return result; | 1004 | return result; |
1005 | } | 1005 | } |
1006 | 1006 | ||
1007 | static bool eq_hw_enabled(void) | 1007 | void eq_hw_enable(bool enable) |
1008 | { | 1008 | { |
1009 | bool result = set_bool(str(LANG_EQUALIZER_HARDWARE_ENABLED), | ||
1010 | &global_settings.eq_hw_enabled); | ||
1011 | |||
1012 | #ifndef SIMULATOR | 1009 | #ifndef SIMULATOR |
1013 | if (global_settings.eq_hw_enabled) { | 1010 | if (enable) { |
1014 | wmcodec_set_equalizer_band(0, global_settings.eq_hw_band0_cutoff, | 1011 | wmcodec_set_equalizer_band(0, global_settings.eq_hw_band0_cutoff, |
1015 | 0, global_settings.eq_hw_band0_gain); | 1012 | 0, global_settings.eq_hw_band0_gain); |
1016 | wmcodec_set_equalizer_band(1, global_settings.eq_hw_band1_center, | 1013 | wmcodec_set_equalizer_band(1, global_settings.eq_hw_band1_center, |
@@ -1035,6 +1032,14 @@ static bool eq_hw_enabled(void) | |||
1035 | wmcodec_set_equalizer_band(4, global_settings.eq_hw_band4_cutoff, 0, 0); | 1032 | wmcodec_set_equalizer_band(4, global_settings.eq_hw_band4_cutoff, 0, 0); |
1036 | } | 1033 | } |
1037 | #endif | 1034 | #endif |
1035 | } | ||
1036 | |||
1037 | static bool eq_hw_enabled(void) | ||
1038 | { | ||
1039 | bool result = set_bool(str(LANG_EQUALIZER_HARDWARE_ENABLED), | ||
1040 | &global_settings.eq_hw_enabled); | ||
1041 | |||
1042 | eq_hw_enable(global_settings.eq_hw_enabled); | ||
1038 | 1043 | ||
1039 | return result; | 1044 | return result; |
1040 | } | 1045 | } |