From 94cea2e3c7ebf88bbd8b0346feb6afcff044f935 Mon Sep 17 00:00:00 2001 From: Cosmin Tanislav Date: Wed, 1 Sep 2021 22:20:09 +0300 Subject: [PATCH] techpack: camera: req_mgr: do not send timestamp for offline context --- techpack/camera/drivers/cam_isp/cam_isp_context.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/techpack/camera/drivers/cam_isp/cam_isp_context.c b/techpack/camera/drivers/cam_isp/cam_isp_context.c index da0a59be2353..0c74d05956ac 100644 --- a/techpack/camera/drivers/cam_isp/cam_isp_context.c +++ b/techpack/camera/drivers/cam_isp/cam_isp_context.c @@ -741,6 +741,12 @@ static void __cam_isp_ctx_send_sof_timestamp( if ((ctx_isp->use_frame_header_ts) || (request_id == 0)) goto end; + if (ctx_isp->offline_context) { + CAM_DBG(CAM_ISP, + "Don't sent sof timestamp for offline context"); + return; + } + req_msg.session_hdl = ctx_isp->base->session_hdl; req_msg.u.frame_msg.frame_id = ctx_isp->frame_id; req_msg.u.frame_msg.request_id = request_id;