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 <vchinta@codeaurora.org>
This commit is contained in:
Venkat Chinta
2020-02-21 11:30:53 -08:00
parent 90d0abfbfd
commit a16202752f

View File

@@ -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->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,