summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerence Ho <terenceh@codeaurora.org>2015-12-10 10:54:47 -0500
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:15:29 -0700
commit085abf8aee778c85db4778fb156e8eb7e3318901 (patch)
tree19d7581cab7b7f3aa4d1a44b1cf5c6ff8a02f10f
parent4f9f3cdabfa0740ac074f4970390c5f625f7e8f9 (diff)
msm: camera: Fix to enable RDI2
Fix incorrect comparison that prevented RDI2 from being enabled. Change-Id: I4f18a290237f074b6a095d33dcd8429f90c8a1d5 Signed-off-by: Terence Ho <terenceh@codeaurora.org>
-rw-r--r--drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c b/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c
index 5f946ac81a4e..6db42df3ab4e 100644
--- a/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c
+++ b/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c
@@ -1162,7 +1162,7 @@ static int msm_isp_axi_stream_enable_cfg(
uint32_t stream_idx = HANDLE_TO_IDX(stream_info->stream_handle);
struct dual_vfe_resource *dual_vfe_res = NULL;
- if (stream_idx >= MAX_NUM_STREAM) {
+ if (stream_idx >= VFE_AXI_SRC_MAX) {
pr_err("%s: Invalid stream_idx", __func__);
goto error;
}