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

Commit 443bbcb0 authored by dongw's avatar dongw
Browse files

msm: camera: lrme: correct fetch engine width size for P010 format



The lrme fetch engine gets stuck for P010 format. Corresponding KMD
format is CAM_FORMAT_PLAIN16_10. It need two bytes to calculate LRME
width. Double the buffer width to fix this issue for P010 format.

Change-Id: I784d9746c34420e274e3291c95d5032ec9b0f9e6
Signed-off-by: default avatarDong Wang <dongw@codeaurora.org>
parent 51c18241
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -42,6 +42,9 @@ static void cam_lrme_hw_util_fill_fe_reg(struct cam_lrme_hw_io_buffer *io_buf,
	uint32_t reg_val;

	/* 1. config buffer size */
	if (io_buf->io_cfg->format == CAM_FORMAT_PLAIN16_10)
		reg_val = io_buf->io_cfg->planes[0].width * 2;
	else
		reg_val = io_buf->io_cfg->planes[0].width;
	reg_val |= (io_buf->io_cfg->planes[0].height << 16);
	cam_lrme_cdm_write_reg_val_pair(reg_val_pair, num_cmd,