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

Commit ee215187 authored by Ayush Kumar's avatar Ayush Kumar
Browse files

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



This change will enable RDI path after flush operation in dual vfe
usecase. In flush operation, stop hw is triggered which disable CSID
path, to enable CSID path again after flush, sof counter need to
be reset.

Change-Id: If904f3745ca29ee3261f1d6ea4796edfefe93f35
Signed-off-by: default avatarAyush Kumar <ayushkr@codeaurora.org>
parent bbbb61fa
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1884,10 +1884,12 @@ static int cam_ife_csid_enable_pxl_path(
		is_ipp = true;
		is_ipp = true;
		pxl_reg = csid_reg->ipp_reg;
		pxl_reg = csid_reg->ipp_reg;
		path_config = &(csid_hw->ipp_path_config);
		path_config = &(csid_hw->ipp_path_config);
		csid_hw->res_sof_cnt[CAM_IFE_PIX_PATH_RES_IPP] = 0;
	} else {
	} else {
		is_ipp = false;
		is_ipp = false;
		pxl_reg = csid_reg->ppp_reg;
		pxl_reg = csid_reg->ppp_reg;
		path_config = &(csid_hw->ppp_path_config);
		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) {
	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);
			res->res_type, res->res_id, res->res_state);
		return -EINVAL;
		return -EINVAL;
	}
	}
	csid_hw->res_sof_cnt[res->res_id] = 0;


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