summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPullakavi Srinivas <spullaka@codeaurora.org>2018-08-29 15:30:35 +0530
committerXu Yang <yangxu@codeaurora.org>2018-09-25 10:58:34 +0800
commit2b08f933f8a44e2af39d59cf06da7203ab9eeda0 (patch)
tree44d6a1e651046c10179dc5bb70c3dc98ce761c78
parent0d0d8fb1dbac70212796bc3e4a93d3b936ac5101 (diff)
downloadandroid_hardware_qcom_sdm710_display-2b08f933f8a44e2af39d59cf06da7203ab9eeda0.tar.gz
android_hardware_qcom_sdm710_display-2b08f933f8a44e2af39d59cf06da7203ab9eeda0.tar.bz2
android_hardware_qcom_sdm710_display-2b08f933f8a44e2af39d59cf06da7203ab9eeda0.zip
sdm: Allow poweron before first commit.
Set CRTC mode while poweron, so that poweron and poweroff can be performed without commit in between. CRs-Fixed: 2305135 Change-Id: I5f726c3b9c106fdc047d67591918d82939e45311
-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);