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

Commit b8942443 authored by Ravneet Dhanjal's avatar Ravneet Dhanjal
Browse files

Camera: Remove AE_PRIORITY_MODE setting in CaptureRequest

- Remove default OFF in capture request
- HAL can assume unless AE priority mode is explicitly
requested, it is not enabled

Test: m, open camera
Bug: 379333302
Flag: EXEMPT bug fix
Change-Id: I6183b2f6ac7095b5496be39a58620b029ad33a00
parent 6847689e
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -1253,14 +1253,6 @@ status_t overrideDefaultRequestKeys(CameraMetadata *request) {
        request->update(ANDROID_CONTROL_AUTOFRAMING, &kDefaultAutoframingMode, 1);
    }

    if (flags::ae_priority()) {
        // Fill in CONTROL_AE_PRIORITY_MODE if not available
        if (!request->exists(ANDROID_CONTROL_AE_PRIORITY_MODE)) {
            static const uint8_t kDefaultAePriorityMode = ANDROID_CONTROL_AE_PRIORITY_MODE_OFF;
            request->update(ANDROID_CONTROL_AE_PRIORITY_MODE, &kDefaultAePriorityMode, 1);
        }
    }

    return OK;
}