Forráskód Böngészése

msm: camera: isp: Correct sync mode of HW in Dual TFE usecase

Sync mode is always master if any resource is acquire from
previously acquired HW. This change is to set correct value of
sync mode depend upon the usecase and acquired hw index.

CRs-Fixed: 3426117
Change-Id: I841105b4c14af6b8da589a7d74a5532ce6244e81
Signed-off-by: Ayush Kumar <[email protected]>
Ayush Kumar 2 éve
szülő
commit
c78e634e0c
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c

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

@@ -1251,6 +1251,9 @@ static int cam_tfe_hw_mgr_acquire_res_tfe_csid_pxl(
 				out_port->secure_mode == 1))
 				continue;
 
+			csid_acquire.sync_mode = ((i == CAM_ISP_HW_SPLIT_LEFT) ?
+				CAM_ISP_HW_SYNC_MASTER : CAM_ISP_HW_SYNC_SLAVE);
+
 			hw_intf = csid_res_iterator->hw_res[i]->hw_intf;
 			csid_acquire.master_idx = hw_intf->hw_idx;