From 46812a7030e46f5d030907a28570535ef8626b50 Mon Sep 17 00:00:00 2001 From: Fernando Pacheco Date: Thu, 27 Aug 2020 10:22:58 -0700 Subject: [PATCH] msm: camera: ife: Always send stop immediately when stopping hw As the name implies, we stop the HW sooner, so prefer it over "stop at frame boundary". CRs-Fixed: 2724889 Change-Id: I7fa353c09dbe733e57f099893edc0e7f7fa18e7a Signed-off-by: Fernando Pacheco --- drivers/cam_isp/cam_isp_context.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/cam_isp/cam_isp_context.c b/drivers/cam_isp/cam_isp_context.c index 79f0885a2f43..67480b578c69 100644 --- a/drivers/cam_isp/cam_isp_context.c +++ b/drivers/cam_isp/cam_isp_context.c @@ -5028,13 +5028,9 @@ static int __cam_isp_ctx_stop_dev_in_activated_unlock( if (ctx_isp->hw_ctx) { stop.ctxt_to_hw_map = ctx_isp->hw_ctx; - if (stop_cmd) - stop_isp.hw_stop_cmd = - CAM_ISP_HW_STOP_AT_FRAME_BOUNDARY; - else - stop_isp.hw_stop_cmd = CAM_ISP_HW_STOP_IMMEDIATELY; - + stop_isp.hw_stop_cmd = CAM_ISP_HW_STOP_IMMEDIATELY; stop_isp.stop_only = false; + stop.args = (void *) &stop_isp; ctx->hw_mgr_intf->hw_stop(ctx->hw_mgr_intf->hw_mgr_priv, &stop);