QCamera3: Notify HDR+ client about Easel error
When HAL receives an Easel fatal error from Easel manager client,
forward the error to HDR+ client so it won't send message to Easel.
Test: CTS
Bug: 67897917
Change-Id: Ic6008661bb61eda39b100b1f4cab46b816b95d9e
Merged-In: Ic6008661bb61eda39b100b1f4cab46b816b95d9e
(cherry picked from commit 5df1ce4eacb08dccdedd48e1994851587d9bb137)
diff --git a/msm8998/QCamera2/HAL3/QCamera3HWI.cpp b/msm8998/QCamera2/HAL3/QCamera3HWI.cpp
index 0d96b75..13ccb8d 100644
--- a/msm8998/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/msm8998/QCamera2/HAL3/QCamera3HWI.cpp
@@ -15354,6 +15354,13 @@
void QCamera3HardwareInterface::handleEaselFatalError()
{
+ {
+ std::unique_lock<std::mutex> l(gHdrPlusClientLock);
+ if (gHdrPlusClient != nullptr) {
+ gHdrPlusClient->nofityEaselFatalError();
+ }
+ }
+
pthread_mutex_lock(&mMutex);
mState = ERROR;
pthread_mutex_unlock(&mMutex);