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

Commit 7db59fed authored by Harsh Shah's avatar Harsh Shah Committed by Jigarkumar Zala
Browse files

msm: camera: isp: Fix rdi buf done for early pcr



Currently there is no callback defined to handle buf done
for early PCR, this change ensures rdi buf done is
acknowledged.

Change-Id: Ib001ed841f812ced50c8afa79edfe634580ab0bd
Signed-off-by: default avatarHarsh Shah <harshs@codeaurora.org>
parent 0de5ae67
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2378,7 +2378,9 @@ static int __cam_isp_ctx_start_dev_in_ready(struct cam_context *ctx,
	ctx_isp->active_req_cnt = 0;
	ctx_isp->reported_req_id = 0;
	ctx_isp->substate_activated = ctx_isp->rdi_only_context ?
		CAM_ISP_CTX_ACTIVATED_APPLIED : CAM_ISP_CTX_ACTIVATED_SOF;
		CAM_ISP_CTX_ACTIVATED_APPLIED :
		(req_isp->num_fence_map_out) ? CAM_ISP_CTX_ACTIVATED_EPOCH :
		CAM_ISP_CTX_ACTIVATED_SOF;

	/*
	 * Only place to change state before calling the hw due to
@@ -2396,6 +2398,11 @@ static int __cam_isp_ctx_start_dev_in_ready(struct cam_context *ctx,
		goto end;
	}
	CAM_DBG(CAM_ISP, "start device success");

	if (req_isp->num_fence_map_out) {
		list_del_init(&req->list);
		list_add_tail(&req->list, &ctx->active_req_list);
	}
end:
	return rc;
}