Browse Source

msm: camera: isp: Fix HW index to IFE HW mapping logic

This fixes logical error in 'commit de6ee5504a0d ("msm: camera: isp:
Remove CPAS version check from IFE HW manager")'.

CRs-Fixed: 2926668
Change-Id: I1bac5972eb24b2920b079cb7d6b532052b51bb55
Signed-off-by: Anand Ravi <[email protected]>
Anand Ravi 4 years ago
parent
commit
928a3140d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

+ 1 - 1
drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

@@ -2104,7 +2104,7 @@ static int cam_convert_hw_idx_to_ife_hw_num(int hw_idx)
 		case 1: return CAM_ISP_IFE1_HW;
 		case 2: return CAM_ISP_IFE2_HW;
 		}
-	} else if (hw_idx < g_num_ife_lite) {
+	} else if (hw_idx < g_num_ife + g_num_ife_lite) {
 		switch (hw_idx - g_num_ife) {
 		case 0: return CAM_ISP_IFE0_LITE_HW;
 		case 1: return CAM_ISP_IFE1_LITE_HW;