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

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

Camera2: Increase mode update timeout.

During camera startup, it might take a few hundred milliseconds before
requests start to be dequeued by the HAL. Increase the timeout for
synchronizing mode changes and triggers so that triggers near startup
don't time out.

Bug: 6970465
Change-Id: I9dc35378e8018ec18ae31be874fcb094f8a9a0e9
parent df4fca94
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1614,7 +1614,7 @@ size_t Camera2Client::calculateBufferSize(int width, int height,

status_t Camera2Client::syncWithDevice() {
    ATRACE_CALL();
    const nsecs_t kMaxSyncTimeout = 100000000; // 100 ms
    const nsecs_t kMaxSyncTimeout = 500000000; // 500 ms
    status_t res;

    int32_t activeRequestId = mStreamingProcessor->getActiveRequestId();