diff options
author | susi_su <susisu@google.com> | 2022-06-28 16:46:27 +0800 |
---|---|---|
committer | susi_su <susisu@google.com> | 2022-07-06 17:14:29 +0800 |
commit | 93bc42db617bd0cdf9fbf18c18e85c26b62f991a (patch) | |
tree | 176d9b4808edcf6b2939a9e1a1a6f93559486982 /libhwc2.1/pixel-display.cpp | |
parent | c4be0ab248ce940539117da3f9ec24a4a3c135cc (diff) |
libhwc2.1: resolving histogram_request_ioctl error log
When screen in idle, DRM driver would not respond
and the DRM request would not be satisfied.
Later on, when another histogram client calls,
DRM driver will complain histogram already registered error log.
Skip the request call if the previous one is there.
Bug: 236907095
Test: local test and verified without error log
Change-Id: I285204a499077e56ff929aac8f56eaeefaaa8588
Diffstat (limited to 'libhwc2.1/pixel-display.cpp')
-rw-r--r-- | libhwc2.1/pixel-display.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhwc2.1/pixel-display.cpp b/libhwc2.1/pixel-display.cpp index 81f5f94..6c2cd09 100644 --- a/libhwc2.1/pixel-display.cpp +++ b/libhwc2.1/pixel-display.cpp @@ -170,7 +170,8 @@ bool Display::runMediator(const RoiRect roi, const Weight weight, const Histogra ALOGE("histogram error, SET_ROI_WEIGHT_THRESHOLD ERROR\n"); return false; } - if (mMediator.requestHist() == HistogramErrorCode::ENABLE_HIST_ERROR) { + if (!mMediator.histRequested() && + mMediator.requestHist() == HistogramErrorCode::ENABLE_HIST_ERROR) { ALOGE("histogram error, ENABLE_HIST ERROR\n"); } if (mMediator.getFrameCount() != mMediator.getSampleFrameCounter()) { |