diff options
author | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | 2018-03-28 15:33:08 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-04-04 15:22:19 -0700 |
commit | 7ef7a1d7afb7cec8f68aabd1ba2c78bcbc5767cb (patch) | |
tree | 4f17cdf72051c032ca9459bbfba7a83e7609dc38 /sdm/libs/core | |
parent | cd01c62eb06d01e81389450250fce4ba3cfa0f38 (diff) | |
download | display-7ef7a1d7afb7cec8f68aabd1ba2c78bcbc5767cb.tar.gz |
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/libs/core')
-rw-r--r-- | sdm/libs/core/drm/hw_device_drm.cpp | 2 |
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, ¤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 */); |