mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
GUI boost for any button
It improve responsiveness for all targets with frequency scaling. Change-Id: I72c94daf58cee10c1772decbd0443856c111cc47
This commit is contained in:
parent
123346b86a
commit
fe9a3ceb0e
4 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue