瀏覽代碼

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 年之前
父節點
當前提交
c78e634e0c
共有 1 個文件被更改,包括 3 次插入0 次删除
  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;