浏览代码

msm: camera: tfe: Take ceiling value while calculating width for wm

Take ceiling value while calculating width for PD10 format.

CRs-Fixed: 3201748
Change-Id: Ib2b722a5e7637b9eb247fba14b512f5338a79836
Signed-off-by: Alok Chauhan <[email protected]>
Alok Chauhan 1 年之前
父节点
当前提交
741818ee75
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_bus.c

+ 1 - 1
drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_bus.c

@@ -787,7 +787,7 @@ static int cam_tfe_bus_acquire_wm(
 			break;
 		case CAM_FORMAT_PD10:
 			rsrc_data->pack_fmt = 0x0;
-			rsrc_data->width /= 4;
+			rsrc_data->width = DIV_ROUND_UP(rsrc_data->width, 4);
 			rsrc_data->height /= 2;
 			break;
 		case CAM_FORMAT_NV21: