From fde5d66e836925b047da021961b48baa0b3eba2f Mon Sep 17 00:00:00 2001 From: Karthik Anantha Ram Date: Tue, 13 Oct 2020 18:19:26 -0700 Subject: [PATCH] msm: camera: isp: Skip qtimer shutter for invalid req_id In order to reduce the traffic on the v4l2 queue, avoid posting qtimer shutter for bubbled frames. CRs-Fixed: 2799794 Change-Id: Id752605e7aff89246edfeec9337612bb7c9b4790 Signed-off-by: Karthik Anantha Ram --- drivers/cam_isp/cam_isp_context.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cam_isp/cam_isp_context.c b/drivers/cam_isp/cam_isp_context.c index 8fd7cb0d0c43..ba6ea97c8bcd 100644 --- a/drivers/cam_isp/cam_isp_context.c +++ b/drivers/cam_isp/cam_isp_context.c @@ -712,8 +712,7 @@ static void __cam_isp_ctx_send_sof_timestamp( { struct cam_req_mgr_message req_msg; - if ((ctx_isp->use_frame_header_ts) && (request_id) && - (sof_event_status == CAM_REQ_MGR_SOF_EVENT_SUCCESS)) + if ((ctx_isp->use_frame_header_ts) || (request_id == 0)) goto end; req_msg.session_hdl = ctx_isp->base->session_hdl;