diff options
author | Long Ling <longling@google.com> | 2021-11-29 17:38:42 -0800 |
---|---|---|
committer | Long Ling <longling@google.com> | 2021-12-08 14:05:15 -0800 |
commit | 8c3560602350982c794559d70889a27c2fa36214 (patch) | |
tree | 5132334c465d1eb90a4ad4466899b5a271f27257 /hwc3/impl/HalImpl.cpp | |
parent | 9fa65beecba6ecb4bc93905ad7bc567abe9acaf8 (diff) |
hwc3: ignore setPowerMode with ON_SUSPEND
Pixel HWC does not handle this mode and return UNSUPPORTED.
Bug: 207141637
Change-Id: I5709d3d47148c3a59f38b82a8cb9d459eed43984
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r-- | hwc3/impl/HalImpl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp index 29bc739..92d57ec 100644 --- a/hwc3/impl/HalImpl.cpp +++ b/hwc3/impl/HalImpl.cpp @@ -863,6 +863,10 @@ int32_t HalImpl::setOutputBuffer(int64_t display, buffer_handle_t buffer, } int32_t HalImpl::setPowerMode(int64_t display, PowerMode mode) { + if (mode == PowerMode::ON_SUSPEND) { + return HWC2_ERROR_UNSUPPORTED; + } + ExynosDisplay* halDisplay; RET_IF_ERR(getHalDisplay(display, halDisplay)); |