Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5588db1a authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

CameraClient: MTK Support

Return on MTK hardware, the HAL does this internally and duplicating it
here causes an infinite loop.

Change-Id: I5bdb925ddb49980747b58dfae4543f812cef4c7d
parent 173f3ecd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -700,6 +700,9 @@ void CameraClient::disableMsgType(int32_t msgType) {

#define CHECK_MESSAGE_INTERVAL 10 // 10ms
bool CameraClient::lockIfMessageWanted(int32_t msgType) {
#ifdef MTK_HARDWARE
    return true;
#endif
    int sleepCount = 0;
    while (mMsgEnabled & msgType) {
        if (mLock.tryLock() == NO_ERROR) {