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

Commit 9c8a0914 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera3Device: Treat failure to idle as an error

Bug: 16899526
Change-Id: Ia995aac6360c9c41ed654af5a7052480f23903d8
parent 176e4c25
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1086,6 +1086,10 @@ status_t Camera3Device::waitUntilDrainedLocked() {

    ALOGV("%s: Camera %d: Waiting until idle", __FUNCTION__, mId);
    status_t res = waitUntilStateThenRelock(/*active*/ false, kShutdownTimeout);
    if (res != OK) {
        SET_ERR_L("Error waiting for HAL to drain: %s (%d)", strerror(-res),
                res);
    }
    return res;
}