msm: camera: cci: Increase HW block support for CCI
Increase hw block support for CCI to 3 for v780 and onwards. CRs-Fixed: 3042539 Change-Id: I4a6b594a22373047e243bfefa22d304eab969e71 Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
a6d54a3219
commit
1d400147b7
@@ -11,19 +11,18 @@
|
||||
|
||||
#define CCI_MAX_DELAY 1000000
|
||||
|
||||
static struct v4l2_subdev *g_cci_subdev[MAX_CCI];
|
||||
static struct v4l2_subdev *g_cci_subdev[MAX_CCI] = { 0 };
|
||||
static struct dentry *debugfs_root;
|
||||
|
||||
struct v4l2_subdev *cam_cci_get_subdev(int cci_dev_index)
|
||||
{
|
||||
struct v4l2_subdev *sub_device = NULL;
|
||||
|
||||
if (cci_dev_index < MAX_CCI)
|
||||
if ((cci_dev_index < MAX_CCI) && (g_cci_subdev[cci_dev_index] != NULL))
|
||||
sub_device = g_cci_subdev[cci_dev_index];
|
||||
else
|
||||
CAM_WARN(CAM_CCI, "Index: %u is beyond max num CCI allowed: %u",
|
||||
cci_dev_index,
|
||||
MAX_CCI);
|
||||
CAM_WARN(CAM_CCI, "CCI subdev not available at Index: %u, MAX_CCI : %u",
|
||||
cci_dev_index, MAX_CCI);
|
||||
|
||||
return sub_device;
|
||||
}
|
||||
|
@@ -59,7 +59,7 @@
|
||||
|
||||
#define CAM_CCI_WORKQUEUE_NAME "cam_cci_wq"
|
||||
|
||||
#define MAX_CCI 2
|
||||
#define MAX_CCI 3
|
||||
|
||||
#define PRIORITY_QUEUE (QUEUE_0)
|
||||
#define SYNC_QUEUE (QUEUE_1)
|
||||
|
Reference in New Issue
Block a user