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

Commit 6864a32e authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Increase precapture end timeout

During flash photography, the precapture trigger may take longer than
2 seconds to finish.

Test: Camera CTS, camera1 apps such as Twitter
Bug: 283443287
Change-Id: Ic0b032835d3b51bd20a034636aefbd86249eb8e9
parent 8f8d3a56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ class CaptureSequencer:
    static const nsecs_t kWaitDuration = 100000000; // 100 ms
    static const nsecs_t kIdleWaitDuration = 10000000; // 10 ms
    static const int kMaxTimeoutsForPrecaptureStart = 10; // 1 sec
    static const int kMaxTimeoutsForPrecaptureEnd = 20;  // 2 sec
    static const int kMaxTimeoutsForPrecaptureEnd = 40;  // 4 sec
    static const int kMaxTimeoutsForCaptureEnd    = 40;  // 4 sec
    static const int kMaxRetryCount = 3; // 3 retries in case of buffer drop