summaryrefslogtreecommitdiffstats
path: root/sdm
diff options
context:
space:
mode:
Diffstat (limited to 'sdm')
-rw-r--r--sdm/libs/core/drm/hw_peripheral_drm.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/sdm/libs/core/drm/hw_peripheral_drm.cpp b/sdm/libs/core/drm/hw_peripheral_drm.cpp
index 03403e5a..61e67c11 100644
--- a/sdm/libs/core/drm/hw_peripheral_drm.cpp
+++ b/sdm/libs/core/drm/hw_peripheral_drm.cpp
@@ -270,8 +270,11 @@ DisplayError HWPeripheralDRM::PowerOn(int *release_fence) {
}
if (first_cycle_) {
- return kErrorNone;
+ drm_atomic_intf_->Perform(DRMOps::CONNECTOR_SET_CRTC, token_.conn_id, token_.crtc_id);
+ 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(sde_drm::DRMOps::CRTC_SET_IDLE_PC_STATE, token_.crtc_id,
sde_drm::DRMIdlePCState::ENABLE);
DisplayError err = HWDeviceDRM::PowerOn(release_fence);