summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPadmanabhan Komanduru <pkomandu@codeaurora.org>2020-06-18 17:53:39 +0530
committerPadmanabhan Komanduru <pkomandu@codeaurora.org>2020-06-18 17:54:41 +0530
commit682b9c031d4ad3c6bdca30e7c68465c0b2f727ef (patch)
tree45af16ac5d19a964f68c43da4013d8b52427e6b5
parentd2205a17fe38554119b2ca5eb79938c12c89d84e (diff)
hwc2: fix SetPowerMode when called from Builtin display
Change-Id: I271b3c7ae3020a0f1178a75d80b28d3f2bbe8c64
-rw-r--r--sdm/libs/hwc2/hwc_display_builtin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_display_builtin.cpp b/sdm/libs/hwc2/hwc_display_builtin.cpp
index a96f3269..bbec3f75 100644
--- a/sdm/libs/hwc2/hwc_display_builtin.cpp
+++ b/sdm/libs/hwc2/hwc_display_builtin.cpp
@@ -330,6 +330,11 @@ HWC2::Error HWCDisplayBuiltIn::SetPowerMode(HWC2::PowerMode mode, bool teardown)
display_intf_->GetConfig(&fixed_info);
bool command_mode = fixed_info.is_cmdmode;
+ auto status = HWCDisplay::SetPowerMode(mode, teardown);
+ if (status != HWC2::Error::None) {
+ return status;
+ }
+
display_intf_->GetConfig(&fixed_info);
is_cmd_mode_ = fixed_info.is_cmdmode;
if (is_cmd_mode_ != command_mode) {