Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1620275 authored by Venkat Chinta's avatar Venkat Chinta
Browse files

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: default avatarVenkat Chinta <vchinta@codeaurora.org>
parent 90d0abfb
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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,