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

Commit 064d662a authored by Venkat Chinta's avatar Venkat Chinta Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Update last applied request ID



This change updates last applied request ID when init packets
are applied and when stop ioctls are invoked.

CRs-Fixed: 2539888
Change-Id: I113b7897740d6577a4757ce41f9fcb1fff8c56e9
Signed-off-by: default avatarVenkat Chinta <vchinta@codeaurora.org>
parent 422de0bb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3683,6 +3683,8 @@ static int __cam_isp_ctx_start_dev_in_ready(struct cam_context *ctx,
	start_isp.hw_config.init_packet = 1;
	start_isp.hw_config.reapply = 0;

	ctx_isp->last_applied_req_id = req->request_id;

	if (ctx->state == CAM_CTX_FLUSHED)
		start_isp.start_only = true;
	else
@@ -3837,6 +3839,7 @@ static int __cam_isp_ctx_stop_dev_in_activated_unlock(
	ctx_isp->active_req_cnt = 0;
	ctx_isp->reported_req_id = 0;
	ctx_isp->bubble_frame_cnt = 0;
	ctx_isp->last_applied_req_id = 0;
	atomic_set(&ctx_isp->process_bubble, 0);
	atomic64_set(&ctx_isp->state_monitor_head, -1);