Jelajahi Sumber

msm: camera: tfe: Handle acquire pdaf resources in PDAF type3 usecase

In Type3 usecase, PDAF ports can come as part of IPP config. This will
cause failure during out pdaf acquire resources.

Handle PDAF ports acquire during this usecase as pdlib resource.

CRs-Fixed: 3546181
Change-Id: I9d42e499c87961f5ceec995245e6b599d6015de7
Signed-off-by: Alok Chauhan <[email protected]>
Alok Chauhan 2 tahun lalu
induk
melakukan
5891dc325a
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c

+ 4 - 0
drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c

@@ -1043,6 +1043,10 @@ static int cam_tfe_hw_mgr_acquire_res_tfe_out_pixel(
 		if (cam_tfe_hw_mgr_is_rdi_res(out_port->res_id))
 			continue;
 
+		if (!cam_tfe_hw_mgr_check_path_port_compat(tfe_in_res->res_id,
+			out_port->res_id))
+			continue;
+
 		CAM_DBG(CAM_ISP, "res_type 0x%x", out_port->res_id);
 
 		tfe_out_res = &tfe_ctx->res_list_tfe_out[k];