diff options
| author | Victor Tasayco Loarte <victorx.tasayco.loarte@intel.com> | 2015-05-20 15:24:39 +0200 |
|---|---|---|
| committer | Zhengyin Qian <qianzy@google.com> | 2015-07-28 11:46:09 -0700 |
| commit | 59b4d76727d3ed68dcadb018c121b6b9d80cfb7b (patch) | |
| tree | f5d34be4e7ce93467723923db5826a63288d46c8 | |
| parent | a584a96a918bb1b5f47a9f274405f00f38064fb6 (diff) | |
| download | android_hardware_intel_img_hwcomposer-59b4d76727d3ed68dcadb018c121b6b9d80cfb7b.tar.gz android_hardware_intel_img_hwcomposer-59b4d76727d3ed68dcadb018c121b6b9d80cfb7b.tar.bz2 android_hardware_intel_img_hwcomposer-59b4d76727d3ed68dcadb018c121b6b9d80cfb7b.zip | |
Set proper blanking mode for DOZE
In order to support Ambient mode with new HWC 1.4 coming with
Diamond, blanking mode should properly set in setPowerMode implementation.
When setting HWC_POWER_MODE_DOZE, display should not blank as other modes
with display on (HWC_POWER_MODE_NORMAL & HWC_POWER_MODE_DOZE_SUSPEND).
Change-Id: I24409ea6e57159c10fb425de0b66ba334810118f
Tracked-On: https://jira01.devtools.intel.com/browse/MARVIN-650
Signed-off-by: Victor Tasayco Loarte <victorx.tasayco.loarte@intel.com>
Reviewed-on: https://android.intel.com:443/370542
| -rw-r--r-- | merrifield/common/devices/PhysicalDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/merrifield/common/devices/PhysicalDevice.cpp b/merrifield/common/devices/PhysicalDevice.cpp index a7e52cd..dc72a00 100644 --- a/merrifield/common/devices/PhysicalDevice.cpp +++ b/merrifield/common/devices/PhysicalDevice.cpp @@ -514,8 +514,8 @@ bool PhysicalDevice::setPowerMode(int mode) // TODO: set proper blanking modes for HWC 1.4 modes switch (mode) { case HWC_POWER_MODE_OFF: - case HWC_POWER_MODE_DOZE: return blank(true); + case HWC_POWER_MODE_DOZE: case HWC_POWER_MODE_NORMAL: case HWC_POWER_MODE_DOZE_SUSPEND: return blank(false); |
