summaryrefslogtreecommitdiffstats
path: root/sdm/libs/core/drm/hw_peripheral_drm.cpp
diff options
context:
space:
mode:
authorSamuel.lh Huang <samuellhhuang@google.com>2018-11-05 11:22:21 +0800
committerSamuel.lh Huang <samuellhhuang@google.com>2018-11-09 12:24:03 +0000
commitd58e4b9b818d06feb46b653b2f8df1b58bb39596 (patch)
tree8824e07e3cd4a884093e7e011e52dfc858cb534c /sdm/libs/core/drm/hw_peripheral_drm.cpp
parentf786370693a0b28530a45bdad068c068869bbd4f (diff)
downloadandroid_hardware_qcom_sdm710_display-d58e4b9b818d06feb46b653b2f8df1b58bb39596.tar.gz
android_hardware_qcom_sdm710_display-d58e4b9b818d06feb46b653b2f8df1b58bb39596.tar.bz2
android_hardware_qcom_sdm710_display-d58e4b9b818d06feb46b653b2f8df1b58bb39596.zip
Revert "sdm: Allow poweron before first commit."
This reverts commit 2b08f933f8a44e2af39d59cf06da7203ab9eeda0. The poweron function do the kick off the frame buffer. But the DRM plane are empty because boot animation doesn't start yet. Therefore the device will show the black screen. Bug: 118594229 Test: no black screen after revert. Change-Id: If88c04d608007bdc04e9bdf31b3e6f1d94817c07
Diffstat (limited to 'sdm/libs/core/drm/hw_peripheral_drm.cpp')
-rw-r--r--sdm/libs/core/drm/hw_peripheral_drm.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/sdm/libs/core/drm/hw_peripheral_drm.cpp b/sdm/libs/core/drm/hw_peripheral_drm.cpp
index 61e67c11..03403e5a 100644
--- a/sdm/libs/core/drm/hw_peripheral_drm.cpp
+++ b/sdm/libs/core/drm/hw_peripheral_drm.cpp
@@ -270,11 +270,8 @@ DisplayError HWPeripheralDRM::PowerOn(int *release_fence) {
}
if (first_cycle_) {
- 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);
+ return kErrorNone;
}
-
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);