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/settings.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/settings.c')
-rw-r--r-- | apps/settings.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c index 43a010aeb2..99cede382b 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -746,6 +746,9 @@ void sound_settings_apply(void) | |||
746 | #ifdef AUDIOHW_HAVE_FILTER_ROLL_OFF | 746 | #ifdef AUDIOHW_HAVE_FILTER_ROLL_OFF |
747 | sound_set(SOUND_FILTER_ROLL_OFF, global_settings.roll_off); | 747 | sound_set(SOUND_FILTER_ROLL_OFF, global_settings.roll_off); |
748 | #endif | 748 | #endif |
749 | #ifdef AUDIOHW_HAVE_POWER_MODE | ||
750 | sound_set(SOUND_POWER_MODE, global_settings.power_mode); | ||
751 | #endif | ||
749 | #ifdef AUDIOHW_HAVE_EQ | 752 | #ifdef AUDIOHW_HAVE_EQ |
750 | int b; | 753 | int b; |
751 | 754 | ||