diff options
author | Andy Hung <hunga@google.com> | 2015-06-04 12:37:59 -0700 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2015-06-04 14:33:58 -0700 |
commit | 33575cb966f196c38429e0fd52f80328cb1d9ac0 (patch) | |
tree | bee6fa374d9cc6de226a60f5dfd0c42ffe8b4394 /hal/msm8974/platform.h | |
parent | 8c8d0cf4fd8e36a11cc1bb1ce367944654d8e3fa (diff) | |
download | hardware_qcom_audio-33575cb966f196c38429e0fd52f80328cb1d9ac0.tar.gz hardware_qcom_audio-33575cb966f196c38429e0fd52f80328cb1d9ac0.tar.bz2 hardware_qcom_audio-33575cb966f196c38429e0fd52f80328cb1d9ac0.zip |
Change Nexus 5 and Nexus 6 deep buffer to 2 periods of 1920 frames(40ms)
Prior setting of 8 periods of 960 frames had identical
thread processing interval to the normal mixer thread.
By increasing the thread processing interval, there is
a measured power reduction of 10 percent on MSM8994.
Note: as a consequence, operations such as pause or volume
may have a slightly greater granularity (40 ms vs 20 ms).
Bug: 21198655
Change-Id: Icd8ce12c987d2b89578c2d2ad9a2ded54c6ce4c0
Diffstat (limited to 'hal/msm8974/platform.h')
-rw-r--r-- | hal/msm8974/platform.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hal/msm8974/platform.h b/hal/msm8974/platform.h index ccb67879..a5c4bd16 100644 --- a/hal/msm8974/platform.h +++ b/hal/msm8974/platform.h @@ -156,8 +156,11 @@ enum { * We should take care of returning proper size when AudioFlinger queries for * the buffer size of an input/output stream */ -#define DEEP_BUFFER_OUTPUT_PERIOD_SIZE 960 -#define DEEP_BUFFER_OUTPUT_PERIOD_COUNT 8 + +/* 1920 frames(40ms) at 2 buffers gives a good tradeoff between power and latency */ +#define DEEP_BUFFER_OUTPUT_PERIOD_SIZE 1920 +#define DEEP_BUFFER_OUTPUT_PERIOD_COUNT 2 + #define LOW_LATENCY_OUTPUT_PERIOD_SIZE 240 #define LOW_LATENCY_OUTPUT_PERIOD_COUNT 2 |