Просмотр исходного кода

msm: camera: isp: Remove request ID in bubble sof notification

This change removes valid request ID from sof notification
when bubble is detected. The sof notification for this request
will be sent after the state machine moves out of bubble applied
state. This is to avoid duplication of timestamps in case of
bubble due to IRQ delays.

CRs-Fixed: 2671273
Change-Id: I5334fab41ae5bce8a42e421747b35f9bfd32aff3
Signed-off-by: Venkat Chinta <[email protected]>
Venkat Chinta 5 лет назад
Родитель
Сommit
758e751074
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      drivers/cam_isp/cam_isp_context.c

+ 2 - 1
drivers/cam_isp/cam_isp_context.c

@@ -1589,7 +1589,8 @@ static int __cam_isp_ctx_epoch_in_applied(struct cam_isp_context *ctx_isp,
 	CAM_DBG(CAM_REQ, "move request %lld to active list(cnt = %d), ctx %u",
 		req->request_id, ctx_isp->active_req_cnt, ctx->ctx_id);
 
-	if (req->request_id > ctx_isp->reported_req_id) {
+	if ((req->request_id > ctx_isp->reported_req_id)
+		&& !req_isp->bubble_report) {
 		request_id = req->request_id;
 		ctx_isp->reported_req_id = request_id;
 	}