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

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

msm: camera: ife: Update max soc block



This change updates max soc block to reflect the increased
number of IFE cores. This change also adds a check for max
number of RDI resources in init.

Change-Id: Id42dad66a3acf5e25ce5b45440b6b5180e9d17d7
Signed-off-by: default avatarVenkat Chinta <vchinta@codeaurora.org>
parent 1c2977d1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -782,7 +782,8 @@ int cam_vfe_top_ver3_init(
	top_priv->last_counter[0] = 0;
	top_priv->last_counter[1] = 0;

	for (i = 0, j = 0; i < CAM_VFE_TOP_VER3_MUX_MAX; i++) {
	for (i = 0, j = 0; i < CAM_VFE_TOP_VER3_MUX_MAX &&
		j < CAM_VFE_RDI_VER2_MAX; i++) {
		top_priv->mux_rsrc[i].res_type = CAM_ISP_RESOURCE_VFE_IN;
		top_priv->mux_rsrc[i].hw_intf = hw_intf;
		top_priv->mux_rsrc[i].res_state =
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@
#define INIT_RATE    -2

/* maximum number of device block */
#define CAM_SOC_MAX_BLOCK           4
#define CAM_SOC_MAX_BLOCK           7

/* maximum number of device base */
#define CAM_SOC_MAX_BASE            CAM_SOC_MAX_BLOCK