浏览代码

msm: camera: isp: Limit sof_in_epoch log to first frame

This change limits SOF in early PCR log to the first
frame for that context. This log is needed to catch
unexpected reg updates on first frame after stream on.

CRs-Fixed: 2553728
Change-Id: Icad85aeab2b095a6b95889c933a2de34acebed80
Signed-off-by: Venkat Chinta <[email protected]>
Signed-off-by: Vishalsingh Hajeri <[email protected]>
Signed-off-by: Pavan Kumar Chilamkurthi <[email protected]>
Venkat Chinta 5 年之前
父节点
当前提交
c23b668890
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      drivers/cam_isp/cam_isp_context.c

+ 7 - 2
drivers/cam_isp/cam_isp_context.c

@@ -1130,8 +1130,13 @@ static int __cam_isp_ctx_sof_in_epoch(struct cam_isp_context *ctx_isp,
 			CAM_ISP_STATE_CHANGE_TRIGGER_SOF,
 			req->request_id);
 
-	CAM_INFO(CAM_ISP,
-		"First SOF in EPCR ctx:%d frame_id:%lld next substate %d",
+	if (ctx_isp->frame_id == 1)
+		CAM_INFO(CAM_ISP,
+			"First SOF in EPCR ctx:%d frame_id:%lld next substate %d",
+			ctx->ctx_id, ctx_isp->frame_id,
+			ctx_isp->substate_activated);
+
+	CAM_DBG(CAM_ISP, "SOF in epoch ctx:%d frame_id:%lld next substate:%d",
 		ctx->ctx_id, ctx_isp->frame_id, ctx_isp->substate_activated);
 
 	return rc;