summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/menus/eq_menu.c3
-rw-r--r--apps/menus/sound_menu.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c
index 8058fa1..883c55d 100644
--- a/apps/menus/eq_menu.c
+++ b/apps/menus/eq_menu.c
@@ -635,7 +635,8 @@ MENUITEM_FUNCTION(eq_save, 0, ID2P(LANG_EQUALIZER_SAVE),
MENUITEM_FUNCTION(eq_browse, 0, ID2P(LANG_EQUALIZER_BROWSE),
(int(*)(void))eq_browse_presets, NULL, NULL, Icon_NOICON);
-MAKE_MENU(equalizer_menu, ID2P(LANG_EQUALIZER), NULL, Icon_EQ,
+int soundmenu_callback(int action,const struct menu_item_ex *this_item);
+MAKE_MENU(equalizer_menu, ID2P(LANG_EQUALIZER), soundmenu_callback, Icon_EQ,
&eq_enable, &eq_graphical, &eq_precut, &gain_menu,
&advanced_eq_menu_, &eq_save, &eq_browse);
diff --git a/apps/menus/sound_menu.c b/apps/menus/sound_menu.c
index 704ceeb..4d6a3e2 100644
--- a/apps/menus/sound_menu.c
+++ b/apps/menus/sound_menu.c
@@ -36,7 +36,9 @@
/***********************************/
/* SOUND MENU */
#if CONFIG_CODEC == SWCODEC
-int soundmenu_callback(int action,const struct menu_item_ex *this_item)
+/* This callback is also used in the eq menu to toggle low latency mode.
+ So, remember this if the callback is used for anything other than the togging */
+int soundmenu_callback(int action, const struct menu_item_ex *this_item)
{
(void)this_item;
switch (action)