Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd8b69b8 authored by Depeng Shao's avatar Depeng Shao
Browse files

msm: camera: isp: Update the reported_req_id correctly



The request id is updated to 0 when the substate is
BUBBLE, then the original request id can't be notified
to UMD, since the reported_req_id is already updated to
the original request id. This change updateds the
reported_req_id only when the final request id is
valid.

CRs-Fixed: 2932602
Change-Id: Ib30f849782283c647f784cfb0deb49bee3d04287
Signed-off-by: default avatarDepeng Shao <depengs@codeaurora.org>
parent f9f491b8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1863,7 +1863,6 @@ static int __cam_isp_ctx_notify_sof_in_activated_state(
			if ((!req_isp->bubble_detected) &&
				(req->request_id > ctx_isp->reported_req_id)) {
				request_id = req->request_id;
				ctx_isp->reported_req_id = request_id;
				__cam_isp_ctx_update_event_record(ctx_isp,
					CAM_ISP_CTX_EVENT_EPOCH, req);
				break;
@@ -1873,6 +1872,9 @@ static int __cam_isp_ctx_notify_sof_in_activated_state(
		if (ctx_isp->substate_activated == CAM_ISP_CTX_ACTIVATED_BUBBLE)
			request_id = 0;

		if (request_id != 0)
			ctx_isp->reported_req_id = request_id;

		__cam_isp_ctx_send_sof_timestamp(ctx_isp, request_id,
			CAM_REQ_MGR_SOF_EVENT_SUCCESS);