diff options
author | Max Kellermann <max@musicpd.org> | 2019-03-17 18:04:40 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-03-17 18:04:40 +0100 |
commit | b76d78e6aeae5a6e638194fed03bd003d5b9f49d (patch) | |
tree | e7da39c7dda04d73ea61b7e2279bce903ee784d0 /src/output | |
parent | 0a6e484b1ab7cb0175464103fc93f550fd7e1c8e (diff) |
output/sles: enable power saving mode
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/plugins/sles/SlesOutputPlugin.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/output/plugins/sles/SlesOutputPlugin.cxx b/src/output/plugins/sles/SlesOutputPlugin.cxx index 3ebe08dfd..f1ef758e4 100644 --- a/src/output/plugins/sles/SlesOutputPlugin.cxx +++ b/src/output/plugins/sles/SlesOutputPlugin.cxx @@ -229,6 +229,14 @@ SlesOutput::Open(AudioFormat &audio_format) SL_ANDROID_KEY_STREAM_TYPE, &stream_type, sizeof(stream_type)); + + /* MPD doesn't care much about latency, so let's + configure power saving mode */ + SLuint32 performance_mode = SL_ANDROID_PERFORMANCE_POWER_SAVING; + (*android_config)->SetConfiguration(android_config, + SL_ANDROID_KEY_PERFORMANCE_MODE, + &performance_mode, + sizeof(performance_mode)); } result = play_object.Realize(false); |