Procházet zdrojové kódy

msm: camera: ife: Assign half the height value for cbcr plane

This change adds a check for plane ID when updating write master
height value in per frame blob. Plane C must be programmed with
half the height.

CRs-Fixed: 2626999
Change-Id: I44b4d69d9d330342c444bbe435c6a54ad9f3bd6f
Signed-off-by: Venkat Chinta <[email protected]>
Venkat Chinta před 5 roky
rodič
revize
a16202752f

+ 5 - 1
drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver3.c

@@ -3527,9 +3527,13 @@ static int cam_vfe_bus_ver3_update_wm_config(
 		}
 		}
 
 
 		wm_data->en_cfg = (wm_config->wm_mode << 16) | 0x1;
 		wm_data->en_cfg = (wm_config->wm_mode << 16) | 0x1;
-		wm_data->height = wm_config->height;
 		wm_data->width  = wm_config->width;
 		wm_data->width  = wm_config->width;
 
 
+		if (i == PLANE_C)
+			wm_data->height = wm_config->height / 2;
+		else
+			wm_data->height = wm_config->height;
+
 		CAM_DBG(CAM_ISP,
 		CAM_DBG(CAM_ISP,
 			"WM:%d en_cfg:0x%X height:%d width:%d",
 			"WM:%d en_cfg:0x%X height:%d width:%d",
 			wm_data->index, wm_data->en_cfg, wm_data->height,
 			wm_data->index, wm_data->en_cfg, wm_data->height,