diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-03-13 02:11:45 +0000 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-03-22 13:00:11 +0000 |
commit | 55805e13a4ef0152b40e6606fce8b4603ae8cb91 (patch) | |
tree | 34171877486e5732233439ef1058007cad36ed29 /apps/menus/sound_menu.c | |
parent | 3a254a92c7363aad95cfcc549732e44d9eddc42b (diff) | |
download | rockbox-55805e13a4ef0152b40e6606fce8b4603ae8cb91.tar.gz rockbox-55805e13a4ef0152b40e6606fce8b4603ae8cb91.zip |
Add new audiohw capability: POWER_MODE_CAP
This allows the user to make use of the DAC's power-saving abilities.
The two modes are "high performance" and "battery saver". This feature
is supported by the AK4376 DAC in the upcoming FiiO M3K port.
The setting is only a manual toggle right now, but in the future it
could be hooked up to the battery level (via another setting) so it
can be toggled automatically when the battery gets too low.
Change-Id: I482af6e2f969fcbdeb3411bd3ff91f866b12d027
Diffstat (limited to 'apps/menus/sound_menu.c')
-rw-r--r-- | apps/menus/sound_menu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/menus/sound_menu.c b/apps/menus/sound_menu.c index 174329fcc8..9cbc76e474 100644 --- a/apps/menus/sound_menu.c +++ b/apps/menus/sound_menu.c | |||
@@ -122,6 +122,10 @@ MENUITEM_SETTING(depth_3d, &global_settings.depth_3d, NULL); | |||
122 | MENUITEM_SETTING(roll_off, &global_settings.roll_off, NULL); | 122 | MENUITEM_SETTING(roll_off, &global_settings.roll_off, NULL); |
123 | #endif | 123 | #endif |
124 | 124 | ||
125 | #ifdef AUDIOHW_HAVE_POWER_MODE | ||
126 | MENUITEM_SETTING(power_mode, &global_settings.power_mode, NULL); | ||
127 | #endif | ||
128 | |||
125 | #ifdef AUDIOHW_HAVE_FUNCTIONAL_MODE | 129 | #ifdef AUDIOHW_HAVE_FUNCTIONAL_MODE |
126 | MENUITEM_SETTING(func_mode, &global_settings.func_mode, NULL); | 130 | MENUITEM_SETTING(func_mode, &global_settings.func_mode, NULL); |
127 | #endif | 131 | #endif |
@@ -240,6 +244,9 @@ MAKE_MENU(sound_settings, ID2P(LANG_SOUND_SETTINGS), NULL, Icon_Audio, | |||
240 | #ifdef AUDIOHW_HAVE_FILTER_ROLL_OFF | 244 | #ifdef AUDIOHW_HAVE_FILTER_ROLL_OFF |
241 | ,&roll_off | 245 | ,&roll_off |
242 | #endif | 246 | #endif |
247 | #ifdef AUDIOHW_HAVE_POWER_MODE | ||
248 | ,&power_mode | ||
249 | #endif | ||
243 | #ifdef AUDIOHW_HAVE_FUNCTIONAL_MODE | 250 | #ifdef AUDIOHW_HAVE_FUNCTIONAL_MODE |
244 | ,&func_mode | 251 | ,&func_mode |
245 | #endif | 252 | #endif |