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

Commit 700656d8 authored by Terence Ho's avatar Terence Ho
Browse files

msm: ais: fix frame based mode



The stride should only override the default if in line based mode.
For frame based mode, it needs to be kept as default value.

Change-Id: Iaa1b17cbdadf166139b2a882453c70285f4abcbd
Signed-off-by: default avatarTerence Ho <terenceh@codeaurora.org>
parent 45c89600
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -2890,12 +2890,15 @@ static int cam_vfe_bus_update_wm(void *priv, void *cmd_args,
				io_cfg->planes[i].plane_stride,
				val);

		/* override stride only if in line based mode */
		if (wm_data->en_cfg == 0x1) {
			CAM_VFE_ADD_REG_VAL_PAIR(reg_val_pair, j,
					wm_data->hw_regs->stride,
					io_cfg->planes[i].plane_stride);
			wm_data->stride = val;
			CAM_DBG(CAM_ISP, "WM %d image stride 0x%x",
					wm_data->index, reg_val_pair[j-1]);
		}

		if (wm_data->en_ubwc) {
			if (!wm_data->hw_regs->ubwc_regs) {