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

Commit 2192ae90 authored by Junzhe Zou's avatar Junzhe Zou
Browse files

camera: isp: do reg update only once at initial configure



Remove reg update in the end of preparing the first configuration
packet since reg update will be done again when camif and rdi resources
starts.

CRs-fixed: 2090188
Change-Id: Ibc9054e017debc3000c81f5ed74a6c6ad79391fe
Signed-off-by: default avatarJunzhe Zou <jnzhezou@codeaurora.org>
parent 13c0e6f9
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1961,6 +1961,16 @@ static int cam_ife_mgr_prepare_hw_update(void *hw_mgr_priv,
			fill_fence = false;
	}

	/*
	 * reg update will be done later for the initial configure.
	 * need to plus one to the op_code and only take the lower
	 * bits to get the type of operation since UMD definition
	 * of op_code has some difference from KMD.
	 */
	if (((prepare->packet->header.op_code + 1) & 0xF) ==
					CAM_ISP_PACKET_INIT_DEV)
		return rc;

	/* add reg update commands */
	for (i = 0; i < ctx->num_base; i++) {
		/* Add change base */