From 7ef7a1d7afb7cec8f68aabd1ba2c78bcbc5767cb Mon Sep 17 00:00:00 2001 From: Ramkumar Radhakrishnan Date: Wed, 28 Mar 2018 15:33:08 -0700 Subject: 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 --- sdm/libs/core/drm/hw_device_drm.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sdm/libs/core') 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, ¤t_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 */); -- cgit v1.2.3