commit | 59b4d76727d3ed68dcadb018c121b6b9d80cfb7b | [log] [tgz] |
---|---|---|
author | Victor Tasayco Loarte <victorx.tasayco.loarte@intel.com> | Wed May 20 15:24:39 2015 +0200 |
committer | Zhengyin Qian <qianzy@google.com> | Tue Jul 28 11:46:09 2015 -0700 |
tree | f5d34be4e7ce93467723923db5826a63288d46c8 | |
parent | a584a96a918bb1b5f47a9f274405f00f38064fb6 [diff] |
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
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 @@ // 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);