summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/lang/deutsch.lang21
-rw-r--r--apps/lang/english.lang20
-rw-r--r--apps/menus/settings_menu.c12
-rw-r--r--apps/settings.c9
-rw-r--r--apps/settings.h4
-rw-r--r--apps/settings_list.c20
6 files changed, 86 insertions, 0 deletions
diff --git a/apps/lang/deutsch.lang b/apps/lang/deutsch.lang
index 55377c2ca1..6d9c025bd2 100644
--- a/apps/lang/deutsch.lang
+++ b/apps/lang/deutsch.lang
@@ -33,6 +33,7 @@
# - Kaspar Rothenfußer
# - Johannes Linke
# - Kai Posadowsky
+# - Udo Schläpfer
<phrase>
id: LANG_SET_BOOL_YES
desc: bool true representation
@@ -13054,3 +13055,23 @@
*: "Beschränke automatischen Verzeichniswechsel"
</voice>
</phrase>
+<phrase>
+ id: LANG_IBASSO_FREQ_SCALING_GOVERNOR
+ desc: in Settings -> General -> System -> Freq Scaling Governor
+ user: core
+ <source>
+ *: none
+ ibassodx50: "Freq Scaling Governor"
+ ibassodx90: "Freq Scaling Governor"
+ </source>
+ <dest>
+ *: none
+ ibassodx50: "Freq Scaling Governor"
+ ibassodx90: "Freq Scaling Governor"
+ </dest>
+ <voice>
+ *: none
+ ibassodx50: "Freq Scaling Governor"
+ ibassodx90: "Freq Scaling Governor"
+ </voice>
+</phrase>
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index ca5e687ea8..081e33d32c 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -13373,3 +13373,23 @@
swcodec: "Dry / Wet Mix"
</voice>
</phrase>
+<phrase>
+ id: LANG_IBASSO_FREQ_SCALING_GOVERNOR
+ desc: in Settings -> General -> System -> Freq Scaling Governor
+ user: core
+ <source>
+ *: none
+ ibassodx50: "Freq Scaling Governor"
+ ibassodx90: "Freq Scaling Governor"
+ </source>
+ <dest>
+ *: none
+ ibassodx50: "Freq Scaling Governor"
+ ibassodx90: "Freq Scaling Governor"
+ </dest>
+ <voice>
+ *: none
+ ibassodx50: "Freq Scaling Governor"
+ ibassodx90: "Freq Scaling Governor"
+ </voice>
+</phrase>
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index 130f5be1a2..6fcc3e91a9 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -50,6 +50,10 @@
#endif
#include "folder_select.h"
+#if defined(DX50) || defined(DX90)
+#include "governor-ibasso.h"
+#endif
+
/***********************************/
/* TAGCACHE MENU */
#ifdef HAVE_TAGCACHE
@@ -325,6 +329,10 @@ MENUITEM_SETTING(touchpad_deadzone, &global_settings.touchpad_deadzone, NULL);
MENUITEM_SETTING(shortcuts_replaces_quickscreen, &global_settings.shortcuts_replaces_qs, NULL);
#endif
+#if defined(DX50) || defined(DX90)
+MENUITEM_SETTING(governor, &global_settings.governor, NULL);
+#endif
+
MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
0, Icon_System_menu,
#if (BATTERY_CAPACITY_INC > 0) || (BATTERY_TYPES_COUNT > 1)
@@ -377,6 +385,10 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
#if defined(USB_ENABLE_STORAGE) && defined(HAVE_MULTIDRIVE)
&usb_skip_first_drive,
#endif
+
+#if defined(DX50) || defined(DX90)
+ &governor,
+#endif
);
/* SYSTEM MENU */
diff --git a/apps/settings.c b/apps/settings.c
index f144a4af03..be7b7c30e6 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();
diff --git a/apps/settings.h b/apps/settings.h
index 4ea56d273e..5d25dc7ab0 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -850,6 +850,10 @@ struct user_settings
int pbe_precut;
int afr_enabled;
+
+#if defined(DX50) || defined(DX90)
+ int governor;
+#endif
};
/** global variables **/
diff --git a/apps/settings_list.c b/apps/settings_list.c
index abdb512a42..2c3f360cea 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);