msm: camera: Correct the reserve buffer logic in mctl_pp.

When the daemon asks to reserve a free buffer, get the
correct address by using the image mode to get to the
correct camera instance and populating the buffer address.

Change-Id: I23c6e00458562ef2b9880cbffe2d6a100de80ea1
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
diff --git a/include/media/msm_camera.h b/include/media/msm_camera.h
index d905b22..58129bb 100644
--- a/include/media/msm_camera.h
+++ b/include/media/msm_camera.h
@@ -265,6 +265,7 @@
 struct msm_pp_frame {
 	uint32_t       handle; /* stores vb cookie */
 	uint32_t       frame_id;
+	unsigned short buf_idx;
 	int            path;
 	unsigned short image_type;
 	unsigned short num_planes; /* 1 for sp */
diff --git a/include/media/msm_isp.h b/include/media/msm_isp.h
index dae4a12..12d3220 100644
--- a/include/media/msm_isp.h
+++ b/include/media/msm_isp.h
@@ -201,6 +201,7 @@
 #define VPE_CMD_SCALE_CFG_TYPE                          11
 #define VPE_CMD_DIS_OFFSET_CFG                          12
 #define VPE_CMD_ZOOM                                    13
+#define VPE_CMD_MAX                                     14
 
 #define MSM_PP_CMD_TYPE_NOT_USED        0  /* not used */
 #define MSM_PP_CMD_TYPE_VPE             1  /* VPE cmd */