diff options
| author | Victor Tasayco Loarte <victorx.tasayco.loarte@intel.com> | 2015-05-20 15:24:39 +0200 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-30 17:41:28 +0000 |
| commit | 79c344ae1eb6191da37b143c78ad0cd439a2a646 (patch) | |
| tree | f1f11e0c3a9a69d51d1c1f8a67e50a94a7e75458 | |
| parent | 47bcb651180100c5f01c2d0d7c0ce023b970c247 (diff) | |
| download | android_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.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); |
