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

Commit d3b7327c authored by Zhijun He's avatar Zhijun He Committed by Android (Google) Code Review
Browse files

Merge "API1: ZSL buffers should be skipped for manual AF mode" into lmp-dev

parents 3bde6b1c 43e2418e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -573,6 +573,11 @@ nsecs_t ZslProcessor3::getCandidateTimestampLocked(size_t* metadataIdx) const {
                    continue;
                }
                uint8_t afMode = entry.data.u8[0];
                if (afMode == ANDROID_CONTROL_AF_MODE_OFF) {
                    // Skip all the ZSL buffer for manual AF mode, as we don't really
                    // know the af state.
                    continue;
                }

                // Check AF state if device has focuser and focus mode isn't fixed
                if (mHasFocuser && !isFixedFocusMode(afMode)) {