Merge "sdm: Avoid Connector and CRTC settings"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
ec4b547fbf
@@ -562,14 +562,18 @@ DisplayError HWDeviceDRM::GetConfigIndex(uint32_t mode, uint32_t *index) {
|
||||
|
||||
DisplayError HWDeviceDRM::PowerOn() {
|
||||
DTRACE_SCOPED();
|
||||
/*
|
||||
drm_atomic_intf_->Perform(DRMOps::CRTC_SET_ACTIVE, token_.crtc_id, 1);
|
||||
drm_atomic_intf_->Perform(DRMOps::CONNECTOR_SET_POWER_MODE, token_.conn_id, DRMPowerMode::ON);
|
||||
*/
|
||||
return kErrorNone;
|
||||
}
|
||||
|
||||
DisplayError HWDeviceDRM::PowerOff() {
|
||||
/*
|
||||
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(false /* synchronous */);
|
||||
if (ret) {
|
||||
DLOGE("%s failed with error %d", __FUNCTION__, ret);
|
||||
|
||||
Reference in New Issue
Block a user