GUI boost for any button

It improve responsiveness for all targets with frequency scaling.

Change-Id: I72c94daf58cee10c1772decbd0443856c111cc47
This commit is contained in:
Mihail Zenkov 2016-03-18 23:34:57 +00:00 committed by Gerrit Rockbox
parent 123346b86a
commit fe9a3ceb0e
4 changed files with 7 additions and 3 deletions

View file

@ -224,9 +224,7 @@ static int get_action_worker(int context, int timeout,
static struct timeout gui_unboost; static struct timeout gui_unboost;
/* Boost the CPU in case of wheel scrolling activity in the defined contexts. /* Boost the CPU in case of wheel scrolling activity in the defined contexts.
* Call unboost with a timeout of GUI_BOOST_TIMEOUT. */ * Call unboost with a timeout of GUI_BOOST_TIMEOUT. */
if ((button&(BUTTON_SCROLL_BACK|BUTTON_SCROLL_FWD)) && if (button != BUTTON_NONE)
(context == CONTEXT_STD || context == CONTEXT_LIST ||
context == CONTEXT_MAINMENU || context == CONTEXT_TREE))
{ {
gui_boost(true); gui_boost(true);
timeout_register(&gui_unboost, gui_unboost_callback, GUI_BOOST_TIMEOUT, 0); timeout_register(&gui_unboost, gui_unboost_callback, GUI_BOOST_TIMEOUT, 0);

View file

@ -97,6 +97,8 @@
/* define this if the target has volume keys which can be used in the lists */ /* define this if the target has volume keys which can be used in the lists */
#define HAVE_VOLUME_IN_LIST #define HAVE_VOLUME_IN_LIST
#define HAVE_GUI_BOOST
/* Define this if you do software codec */ /* Define this if you do software codec */
#define CONFIG_CODEC SWCODEC #define CONFIG_CODEC SWCODEC
/* There is no hardware tone control */ /* There is no hardware tone control */

View file

@ -93,6 +93,8 @@
/* define this if the target has volume keys which can be used in the lists */ /* define this if the target has volume keys which can be used in the lists */
#define HAVE_VOLUME_IN_LIST #define HAVE_VOLUME_IN_LIST
#define HAVE_GUI_BOOST
/* Define this if you do software codec */ /* Define this if you do software codec */
#define CONFIG_CODEC SWCODEC #define CONFIG_CODEC SWCODEC
/* There is no hardware tone control */ /* There is no hardware tone control */

View file

@ -92,6 +92,8 @@
/* define this if the target has volume keys which can be used in the lists */ /* define this if the target has volume keys which can be used in the lists */
#define HAVE_VOLUME_IN_LIST #define HAVE_VOLUME_IN_LIST
#define HAVE_GUI_BOOST
/* Define this if you do software codec */ /* Define this if you do software codec */
#define CONFIG_CODEC SWCODEC #define CONFIG_CODEC SWCODEC
/* There is no hardware tone control */ /* There is no hardware tone control */