From b90c15b15d53ea21b3d2eedbd9eaadb5c1ce6143 Mon Sep 17 00:00:00 2001 From: Chris Ye Date: Sun, 21 Jul 2019 22:51:42 -0700 Subject: [PATCH] msm-camera: Enable initial skip for dual camera synchronization For portrait mode with dual camera synchronization, enable initial skip to make sure two sensors both start streaming with synchronization signal. This fixed the portrait mode switching stability issue. Bug: 136756925 Change-Id: I2e6e8c463bffd04da441f3da3033e6596f30e72a Signed-off-by: Chris Ye Signed-off-by: Yaroslav Furman Signed-off-by: Cyber Knight --- techpack/camera/drivers/cam_req_mgr/cam_req_mgr_core.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/techpack/camera/drivers/cam_req_mgr/cam_req_mgr_core.c b/techpack/camera/drivers/cam_req_mgr/cam_req_mgr_core.c index 463a836ae735..5752c8507975 100755 --- a/techpack/camera/drivers/cam_req_mgr/cam_req_mgr_core.c +++ b/techpack/camera/drivers/cam_req_mgr/cam_req_mgr_core.c @@ -1067,8 +1067,13 @@ static int __cam_req_mgr_check_sync_for_mslave( } } } else { - if (link->initial_skip) + if (link->initial_skip) { + CAM_DBG(CAM_CRM, + "Initial skip Req: %lld on link: %x", + req_id, link->link_hdl); link->initial_skip = false; + return -EAGAIN; + } rc = __cam_req_mgr_inject_delay(link->req.l_tbl, slot->idx); if (rc) {