From 43b7ac6bd1a949ecb8ffc7e50d0a2f01a6258034 Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Tue, 23 Oct 2012 09:09:01 -0700 Subject: 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 --- services/camera/libcameraservice/Camera2Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/camera') diff --git a/services/camera/libcameraservice/Camera2Client.cpp b/services/camera/libcameraservice/Camera2Client.cpp index 0675400..94630f9 100644 --- a/services/camera/libcameraservice/Camera2Client.cpp +++ b/services/camera/libcameraservice/Camera2Client.cpp @@ -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(); -- cgit v1.1