summaryrefslogtreecommitdiffstats
path: root/sdm
diff options
context:
space:
mode:
authorChengYou Ho <chengyouho@google.com>2018-10-16 16:12:50 +0800
committerChengyou Ho <chengyouho@google.com>2018-10-16 08:48:29 +0000
commitee59bc0b26b9f281808e2398752abe06f794e130 (patch)
tree77a7f2bc536bfb6508bd55d70a634e4e4b4c5ffd /sdm
parentb9c9f94fb29f1d2854b0a5e768dae7bd078d186b (diff)
parentbdbe838f2355072b8f6c59766bd9feae9464cee6 (diff)
downloadandroid_hardware_qcom_sdm710_display-ee59bc0b26b9f281808e2398752abe06f794e130.tar.gz
android_hardware_qcom_sdm710_display-ee59bc0b26b9f281808e2398752abe06f794e130.tar.bz2
android_hardware_qcom_sdm710_display-ee59bc0b26b9f281808e2398752abe06f794e130.zip
Merge remote-tracking branch 'goog/qcom/release/LA.UM.7.8.9.08.00.00.478.098' into pi-dev
Bug: 117810284 Change-Id: I01c6d91c6a39ba09d5f4edaf42c16bc5f83cf2ab
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);