소스 검색

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;