Explorar o código

msm: camera: tfe: Dont consider vbi for epoch configuration in case of tpg

In case of TPG enabled, vbi value should be not be
consider in calculating epoch configuration because
vbi value passed is in cycles not in terms of lines
when TPG is selected.

CRs-Fixed: 2797039
Change-Id: Ia8870a8c2516fc2e0b3347ccb6b69db3774e33c1
Signed-off-by: Shravya Samala <[email protected]>
Shravya Samala %!s(int64=4) %!d(string=hai) anos
pai
achega
3584602abf
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_core.c

+ 5 - 2
drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_core.c

@@ -1821,8 +1821,11 @@ int cam_tfe_top_reserve(void *device_priv,
 					acquire_args->in_port->line_start;
 				camif_data->last_line =
 					acquire_args->in_port->line_end;
-				camif_data->vbi_value =
-					acquire_args->in_port->sensor_vbi;
+				if (acquire_args->in_port->res_id == CAM_ISP_TFE_IN_RES_TPG)
+					camif_data->vbi_value = 0;
+				else
+					camif_data->vbi_value =
+						acquire_args->in_port->sensor_vbi;
 				camif_data->hbi_value =
 					acquire_args->in_port->sensor_hbi;
 				camif_data->camif_pd_enable =