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

Commit 19198d5b authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: isp: Add go_cmd after rup_cmd for offline use-cases" into camera-kernel.lnx.4.0

parents 162dad6b f1e30d21
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -6355,17 +6355,6 @@ static int cam_ife_mgr_prepare_hw_update(void *hw_mgr_priv,
		}
	}

	/* add go_cmd for offline context */
	if (prepare->num_out_map_entries && prepare->num_in_map_entries &&
		ctx->is_offline) {
		rc = cam_isp_add_go_cmd(prepare, &ctx->res_list_ife_in_rd,
			ctx->base[i].idx, &kmd_buf);
		if (rc)
			CAM_ERR(CAM_ISP,
				"Add GO_CMD faled i: %d, idx: %d, rc: %d",
				i, ctx->base[i].idx, rc);
	}

	/*
	 * reg update will be done later for the initial configure.
	 * need to plus one to the op_code and only take the lower
@@ -6437,6 +6426,17 @@ static int cam_ife_mgr_prepare_hw_update(void *hw_mgr_priv,
		}
	}

	/* add go_cmd for offline context */
	if (prepare->num_out_map_entries && prepare->num_in_map_entries &&
		ctx->is_offline) {
		rc = cam_isp_add_go_cmd(prepare, &ctx->res_list_ife_in_rd,
			ctx->base[i].idx, &kmd_buf);
		if (rc)
			CAM_ERR(CAM_ISP,
				"Add GO_CMD faled i: %d, idx: %d, rc: %d",
				i, ctx->base[i].idx, rc);
	}

end:
	return rc;
}