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

Commit 37224a0f authored by Trishansh Bhardwaj's avatar Trishansh Bhardwaj Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Update last reported request ID correctly



The last reported request ID indicates the request ID for which
the shutter was sent last. Only update this field for requests
that have not bubbled in a given ISP ctx.

CRs-Fixed: 2712404
Change-Id: I7aa1e8154fecd0b8ca8dca230173fbbe6ecd78bd
Signed-off-by: default avatarTrishansh Bhardwaj <tbhardwa@codeaurora.org>
parent 0ebcb0bb
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1137,7 +1137,9 @@ static int __cam_isp_ctx_notify_sof_in_activated_state(
		}

		list_for_each_entry(req, &ctx->active_req_list, list) {
			if (req->request_id > ctx_isp->reported_req_id) {
			req_isp = (struct cam_isp_ctx_req *) req->req_priv;
			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,
@@ -1362,10 +1364,12 @@ 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;
	}

	__cam_isp_ctx_send_sof_timestamp(ctx_isp, request_id,
		CAM_REQ_MGR_SOF_EVENT_ERROR);
	__cam_isp_ctx_update_event_record(ctx_isp,