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

Commit 7469cfe2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: isp: Reset sof counter before enable the CSID path"

parents 8e57beea ee215187
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1884,10 +1884,12 @@ static int cam_ife_csid_enable_pxl_path(
		is_ipp = true;
		pxl_reg = csid_reg->ipp_reg;
		path_config = &(csid_hw->ipp_path_config);
		csid_hw->res_sof_cnt[CAM_IFE_PIX_PATH_RES_IPP] = 0;
	} else {
		is_ipp = false;
		pxl_reg = csid_reg->ppp_reg;
		path_config = &(csid_hw->ppp_path_config);
		csid_hw->res_sof_cnt[CAM_IFE_PIX_PATH_RES_PPP] = 0;
	}

	if (res->res_state != CAM_ISP_RESOURCE_STATE_INIT_HW) {
@@ -2288,6 +2290,7 @@ static int cam_ife_csid_enable_rdi_path(
			res->res_type, res->res_id, res->res_state);
		return -EINVAL;
	}
	csid_hw->res_sof_cnt[res->res_id] = 0;

	if (path_data->usage_type)
		path_data->init_frame_drop = csid_hw->init_frame_drop + 1;