summaryrefslogtreecommitdiffstats
path: root/sdm
diff options
context:
space:
mode:
authorRamkumar Radhakrishnan <ramkumar@codeaurora.org>2018-03-28 15:33:08 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-04-04 15:22:19 -0700
commit7ef7a1d7afb7cec8f68aabd1ba2c78bcbc5767cb (patch)
tree4f17cdf72051c032ca9459bbfba7a83e7609dc38 /sdm
parentcd01c62eb06d01e81389450250fce4ba3cfa0f38 (diff)
downloadandroid_hardware_qcom_sdm710_display-7ef7a1d7afb7cec8f68aabd1ba2c78bcbc5767cb.tar.gz
android_hardware_qcom_sdm710_display-7ef7a1d7afb7cec8f68aabd1ba2c78bcbc5767cb.tar.bz2
android_hardware_qcom_sdm710_display-7ef7a1d7afb7cec8f68aabd1ba2c78bcbc5767cb.zip
sdm: Set connector mode on power off
CRTC ROI is set to full screen during power off. if SetActiveConfig() called before SetPowerMode off, CRTC ROI is set to full screen based on old resolution mode which results in failure. Hence set the new connector mode as a part of SetPowerMode to avoid this. Change-Id: Id3b16113a8f944b6fb839f23f6af8b56bba69fdc CRs-Fixed: 2211483
Diffstat (limited to 'sdm')
-rw-r--r--sdm/libs/core/drm/hw_device_drm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sdm/libs/core/drm/hw_device_drm.cpp b/sdm/libs/core/drm/hw_device_drm.cpp
index d28d911b..c6547e95 100644
--- a/sdm/libs/core/drm/hw_device_drm.cpp
+++ b/sdm/libs/core/drm/hw_device_drm.cpp
@@ -740,6 +740,8 @@ DisplayError HWDeviceDRM::PowerOff() {
}
SetFullROI();
+ drmModeModeInfo current_mode = connector_info_.modes[current_mode_index_].mode;
+ drm_atomic_intf_->Perform(DRMOps::CRTC_SET_MODE, token_.crtc_id, &current_mode);
drm_atomic_intf_->Perform(DRMOps::CONNECTOR_SET_POWER_MODE, token_.conn_id, DRMPowerMode::OFF);
drm_atomic_intf_->Perform(DRMOps::CRTC_SET_ACTIVE, token_.crtc_id, 0);
int ret = drm_atomic_intf_->Commit(true /* synchronous */, false /* retain_planes */);