From 30e96a373210f47da7a25276d49d5f7672f893d5 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Wed, 25 Aug 2021 20:10:37 +0100 Subject: quickscreen: fix EQ enable not working in quickscreen The EQ enabled setting needs to call into the DSP core when it's changed but this was only hooked into the EQ menu. The quickscreen uses option_select_next_val() so those DSP hooks were not getting called because the setting did not have any callback defined. It seems this bug was introduced by 362f7a3220 removing the blanket call to settings_apply(). Other settings might be affected too. Change-Id: Idcce5809c525fa619e6bdf1be50c98a5df103fec --- apps/menus/eq_menu.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/menus/eq_menu.c') diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c index 656fe7b282..79389ae561 100644 --- a/apps/menus/eq_menu.c +++ b/apps/menus/eq_menu.c @@ -51,6 +51,8 @@ #include "option_select.h" #include "string-extra.h" +static void eq_apply(void); + /* * Utility functions */ @@ -69,6 +71,12 @@ const char* eq_precut_format(char* buffer, size_t buffer_size, int value, const return buffer; } +void eq_enabled_option_callback(bool enabled) +{ + (void)enabled; + eq_apply(); +} + /* * Settings functions */ -- cgit v1.2.3