summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Tasayco Loarte <victorx.tasayco.loarte@intel.com>2015-05-20 15:24:39 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-30 17:41:28 +0000
commit79c344ae1eb6191da37b143c78ad0cd439a2a646 (patch)
treef1f11e0c3a9a69d51d1c1f8a67e50a94a7e75458
parent47bcb651180100c5f01c2d0d7c0ce023b970c247 (diff)
downloadandroid_hardware_intel_img_hwcomposer-79c344ae1eb6191da37b143c78ad0cd439a2a646.tar.gz
android_hardware_intel_img_hwcomposer-79c344ae1eb6191da37b143c78ad0cd439a2a646.tar.bz2
android_hardware_intel_img_hwcomposer-79c344ae1eb6191da37b143c78ad0cd439a2a646.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.cpp2
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);