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

Commit adefc25a authored by Meera Gande's avatar Meera Gande
Browse files

msm: camera: isp: Fix compilation issues for O upgrade



Make the required changes to fix the compilation issues
for 8909 O upgrade

Change-Id: I21f44a44e8f4e683ab8f0795af25a18dc7f77bd0
Signed-off-by: default avatarMeera Gande <mgande@codeaurora.org>
parent 822fa236
Loading
Loading
Loading
Loading
+5 −31
Original line number Original line Diff line number Diff line
@@ -20,6 +20,10 @@
#include "msm_isp_stats_util_32.h"
#include "msm_isp_stats_util_32.h"
#include "msm_camera_io_util.h"
#include "msm_camera_io_util.h"


#ifndef UINT16_MAX
#define UINT16_MAX             (65535U)
#endif

#define MAX_ISP_V4l2_EVENTS 100
#define MAX_ISP_V4l2_EVENTS 100
static DEFINE_MUTEX(bandwidth_mgr_mutex);
static DEFINE_MUTEX(bandwidth_mgr_mutex);
static struct msm_isp_bandwidth_mgr isp_bandwidth_mgr;
static struct msm_isp_bandwidth_mgr isp_bandwidth_mgr;
@@ -853,36 +857,6 @@ static long msm_isp_ioctl_compat(struct v4l2_subdev *sd,
		mutex_unlock(&vfe_dev->realtime_mutex);
		mutex_unlock(&vfe_dev->realtime_mutex);
		break;
		break;
	}
	}
	case VIDIOC_MSM_ISP_BUF_DONE: {
		struct msm_isp32_event_data buf_event;
		struct msm_isp32_event_data32 *buf_event32;

		memset(&buf_event, 0, sizeof(buf_event));
		buf_event32 =
		  (struct msm_isp32_event_data32 *)arg;
		buf_event.input_intf = buf_event32->input_intf;
		buf_event.frame_id = buf_event32->frame_id;
		buf_event.timestamp.tv_sec =
				buf_event32->timestamp.tv_sec;
		buf_event.timestamp.tv_usec =
				buf_event32->timestamp.tv_usec;
		buf_event.mono_timestamp.tv_sec =
				buf_event32->mono_timestamp.tv_sec;
		buf_event.mono_timestamp.tv_usec =
				buf_event32->mono_timestamp.tv_usec;
		buf_event.u.buf_done.session_id =
		  buf_event32->u.buf_done.session_id;
		buf_event.u.buf_done.stream_id =
		  buf_event32->u.buf_done.stream_id;
		buf_event.u.buf_done.output_format =
			buf_event32->u.buf_done.output_format;
		buf_event.u.buf_done.buf_idx =
			buf_event32->u.buf_done.buf_idx;
		buf_event.u.buf_done.handle =
			buf_event32->u.buf_done.handle;
		cmd = VIDIOC_MSM_ISP_BUF_DONE;
		return msm_isp_ioctl_unlocked(sd, cmd, &buf_event);
	}
	default:
	default:
		return msm_isp_ioctl_unlocked(sd, cmd, arg);
		return msm_isp_ioctl_unlocked(sd, cmd, arg);
	}
	}
@@ -1237,7 +1211,7 @@ int msm_isp_proc_cmd(struct vfe_device *vfe_dev, void *arg)
	}
	}


	if (proc_cmd->cmd_len > 0 &&
	if (proc_cmd->cmd_len > 0 &&
		proc_cmd->cmd_len < sizeof(uint16_t)) {
		proc_cmd->cmd_len < UINT16_MAX) {
		cfg_data = kzalloc(proc_cmd->cmd_len, GFP_KERNEL);
		cfg_data = kzalloc(proc_cmd->cmd_len, GFP_KERNEL);
		if (!cfg_data) {
		if (!cfg_data) {
			pr_err("%s: cfg_data alloc failed\n", __func__);
			pr_err("%s: cfg_data alloc failed\n", __func__);
+0 −8
Original line number Original line Diff line number Diff line
@@ -41,13 +41,5 @@ struct msm_isp32_event_data32 {
	} u;
	} u;
};
};


#define VIDIOC_MSM_ISP_BUF_DONE \
	_IOWR('V', BASE_VIDIOC_PRIVATE+21, struct msm_isp32_event_data32)

#else

#define VIDIOC_MSM_ISP_BUF_DONE \
	_IOWR('V', BASE_VIDIOC_PRIVATE+21, struct msm_isp32_event_data)

#endif
#endif
#endif /* __MSMB_ISP__ */
#endif /* __MSMB_ISP__ */
+5 −1
Original line number Original line Diff line number Diff line
@@ -1087,4 +1087,8 @@ enum msm_isp_ioctl_cmd_code {


#define VIDIOC_MSM_ISP_AHB_CLK_CFG \
#define VIDIOC_MSM_ISP_AHB_CLK_CFG \
	_IOWR('V', MSM_ISP_AHB_CLK_CFG, struct msm_isp_ahb_clk_cfg)
	_IOWR('V', MSM_ISP_AHB_CLK_CFG, struct msm_isp_ahb_clk_cfg)

#define VIDIOC_MSM_ISP_BUF_DONE \
	_IOWR('V', BASE_VIDIOC_PRIVATE+21, struct msm_isp32_event_data)

#endif/* __MSMB_ISP__ */
#endif/* __MSMB_ISP__ */