diff options
| author | Udo Schläpfer <rockbox-2014.10@desktopwarrior.net> | 2015-01-30 22:47:30 +0100 |
|---|---|---|
| committer | Udo Schläpfer <rockbox-2014.10@desktopwarrior.net> | 2015-02-02 21:58:25 +0100 |
| commit | 040306a71663d98f1ca568b61010ee125d1e6501 (patch) | |
| tree | 369840173d587df590ce9674cfd0f62163034105 /apps/settings_list.c | |
| parent | dbabd0d9c34a33bc0c51243ec37f230d117db955 (diff) | |
| download | rockbox-040306a71663d98f1ca568b61010ee125d1e6501.zip rockbox-040306a71663d98f1ca568b61010ee125d1e6501.tar.gz rockbox-040306a71663d98f1ca568b61010ee125d1e6501.tar.bz2 rockbox-040306a71663d98f1ca568b61010ee125d1e6501.tar.xz | |
iBasso DX50/DX90: User selectable freq scaling governor.
Depends on http://gerrit.rockbox.org/r/#/c/1043/.
This patch adds a new setting in Settings -> General
-> System: Freq Scaling Governor
Usable in Quickscreen and Shortcuts.
Possible settings are:
- Conservative: Slow frequency switching.
- Ondemand or Interactive: Fast frequency switching.
- Powersave: Allways lowest frequency.
- Performance: Allways highest frequency.
German translation provided.
This may be genric for Android kernel based devices but is only enabled
for iBasso Devices. Other maintainers may choose do adopt this.
Change-Id: I10296f5be9586ad3a409105db0cd03682a30e9c1
Diffstat (limited to 'apps/settings_list.c')
| -rw-r--r-- | apps/settings_list.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c index abdb512..2c3f360 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c @@ -62,6 +62,10 @@ #include "onplay.h" #endif +#if defined(DX50) || defined(DX90) +#include "governor-ibasso.h" +#endif + #define NVRAM(bytes) (bytes<<F_NVRAM_MASK_SHIFT) /** NOTE: NVRAM_CONFIG_VERSION is in settings_list.h and you may need to update it if you edit this file */ @@ -2193,6 +2197,22 @@ const struct settings_list settings[] = { NULL, "root menu order", root_menu_load_from_cfg, root_menu_write_to_cfg, root_menu_is_changed, root_menu_set_default), + +#if defined(DX50) || defined(DX90) + CHOICE_SETTING(0, + governor, + LANG_IBASSO_FREQ_SCALING_GOVERNOR, + GOVERNOR_POWERSAVE, + "freq scaling governor", + "conservative,ondemand,interactive,powersave,performance", + ibasso_set_governor, + 5, + "Conservative", + "Ondemand", + "Interactive", + "Powersave", + "Performance"), +#endif }; const int nb_settings = sizeof(settings)/sizeof(*settings); |