Эх сурвалжийг харах

Merge "msm: camera: ife: Assign half the height value for cbcr plane" into camera-kernel.lnx.4.0

Haritha Chintalapati 5 жил өмнө
parent
commit
a018ba6cf1

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

@@ -3524,9 +3524,13 @@ static int cam_vfe_bus_ver3_update_wm_config(
 		}
 
 		wm_data->en_cfg = (wm_config->wm_mode << 16) | 0x1;
-		wm_data->height = wm_config->height;
 		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,
 			"WM:%d en_cfg:0x%X height:%d width:%d",
 			wm_data->index, wm_data->en_cfg, wm_data->height,