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

Commit 42e03add authored by Karthik Anantha Ram's avatar Karthik Anantha Ram
Browse files

msm: camera: isp: Handle early PCR for all pipelines



Ensure state transitions happen the right way to signal
the buffer associated with early PCR.

Change-Id: Icb67bbdac7f7d43f140ddf4c6a6885252ba5faf7
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent fe4ac4f3
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -3170,7 +3170,7 @@ static int __cam_isp_ctx_start_dev_in_ready(struct cam_context *ctx,
	ctx_isp->reported_req_id = 0;
	ctx_isp->substate_activated = ctx_isp->rdi_only_context ?
		CAM_ISP_CTX_ACTIVATED_APPLIED :
		(req_isp->num_fence_map_out) ? CAM_ISP_CTX_ACTIVATED_EPOCH :
		(req_isp->num_fence_map_out) ? CAM_ISP_CTX_ACTIVATED_APPLIED :
		CAM_ISP_CTX_ACTIVATED_SOF;

	/*
@@ -3192,13 +3192,8 @@ static int __cam_isp_ctx_start_dev_in_ready(struct cam_context *ctx,
	CAM_DBG(CAM_ISP, "start device success ctx %u", ctx->ctx_id);

	list_del_init(&req->list);

	if (req_isp->num_fence_map_out) {
		list_add_tail(&req->list, &ctx->active_req_list);
		ctx_isp->active_req_cnt++;
	} else {
	list_add_tail(&req->list, &ctx->wait_req_list);
	}

end:
	return rc;
}