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.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.c')
| -rw-r--r-- | apps/settings.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c index f144a4a..be7b7c3 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -105,6 +105,11 @@ struct system_status global_status; #include "lcd-remote.h" #endif +#if defined(DX50) || defined(DX90) +#include "governor-ibasso.h" +#endif + + long lasttime = 0; /** NVRAM stuff, if the target doesnt have NVRAM it is saved in ROCKBOX_DIR /nvram.bin **/ @@ -1081,6 +1086,10 @@ void settings_apply(bool read_disk) memcpy(&calibration_parameters, &global_settings.ts_calibration_data, sizeof(struct touchscreen_parameter)); #endif +#if defined(DX50) || defined(DX90) + ibasso_set_governor(global_settings.governor); +#endif + /* This should stay last */ #if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC enc_global_settings_apply(); |