summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2016-03-18 23:34:57 +0000
committerGerrit Rockbox <gerrit@rockbox.org>2016-03-18 21:39:37 +0100
commitfe9a3ceb0e09ae44d15f2636162ea534129b2137 (patch)
tree3bc39f309f1fd119359ae1c5f426ddbda270ddf6
parent123346b86a600dbe1e57273c0f333f6ecda16977 (diff)
downloadrockbox-fe9a3ce.tar.gz
rockbox-fe9a3ce.tar.bz2
rockbox-fe9a3ce.zip
GUI boost for any button
It improve responsiveness for all targets with frequency scaling. Change-Id: I72c94daf58cee10c1772decbd0443856c111cc47
-rw-r--r--apps/action.c4
-rw-r--r--firmware/export/config/sansaclipplus.h2
-rw-r--r--firmware/export/config/sansaclipv2.h2
-rw-r--r--firmware/export/config/sansaclipzip.h2
4 files changed, 7 insertions, 3 deletions
diff --git a/apps/action.c b/apps/action.c
index 856bc0810c..eae00f5d18 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -224,9 +224,7 @@ static int get_action_worker(int context, int timeout,
static struct timeout gui_unboost;
/* Boost the CPU in case of wheel scrolling activity in the defined contexts.
* Call unboost with a timeout of GUI_BOOST_TIMEOUT. */
- if ((button&(BUTTON_SCROLL_BACK|BUTTON_SCROLL_FWD)) &&
- (context == CONTEXT_STD || context == CONTEXT_LIST ||
- context == CONTEXT_MAINMENU || context == CONTEXT_TREE))
+ if (button != BUTTON_NONE)
{
gui_boost(true);
timeout_register(&gui_unboost, gui_unboost_callback, GUI_BOOST_TIMEOUT, 0);
diff --git a/firmware/export/config/sansaclipplus.h b/firmware/export/config/sansaclipplus.h
index e9ebf02f85..6b84faabd4 100644
--- a/firmware/export/config/sansaclipplus.h
+++ b/firmware/export/config/sansaclipplus.h
@@ -97,6 +97,8 @@
/* define this if the target has volume keys which can be used in the lists */
#define HAVE_VOLUME_IN_LIST
+#define HAVE_GUI_BOOST
+
/* Define this if you do software codec */
#define CONFIG_CODEC SWCODEC
/* There is no hardware tone control */
diff --git a/firmware/export/config/sansaclipv2.h b/firmware/export/config/sansaclipv2.h
index d163d116cf..5f6d195810 100644
--- a/firmware/export/config/sansaclipv2.h
+++ b/firmware/export/config/sansaclipv2.h
@@ -93,6 +93,8 @@
/* define this if the target has volume keys which can be used in the lists */
#define HAVE_VOLUME_IN_LIST
+#define HAVE_GUI_BOOST
+
/* Define this if you do software codec */
#define CONFIG_CODEC SWCODEC
/* There is no hardware tone control */
diff --git a/firmware/export/config/sansaclipzip.h b/firmware/export/config/sansaclipzip.h
index 1f6307865a..b028dadb75 100644
--- a/firmware/export/config/sansaclipzip.h
+++ b/firmware/export/config/sansaclipzip.h
@@ -92,6 +92,8 @@
/* define this if the target has volume keys which can be used in the lists */
#define HAVE_VOLUME_IN_LIST
+#define HAVE_GUI_BOOST
+
/* Define this if you do software codec */
#define CONFIG_CODEC SWCODEC
/* There is no hardware tone control */