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

Commit d096a144 authored by Venu Raidu's avatar Venu Raidu
Browse files

msm: camera_v2: Use proper buffer index



During the frame drop, CPP needs to use proper
buffer index to drop the valid frame.

Change-Id: I75ff267df7346717a2e01ec0a393d8bd6f28faeb
Signed-off-by: default avatarVenu Raidu <vraidu@codeaurora.org>
parent 92f38e1d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3657,6 +3657,8 @@ static long msm_cpp_subdev_ioctl(struct v4l2_subdev *sd,
		} else {
			ioctl_cmd = VIDIOC_MSM_BUF_MNGR_IOCTL_CMD;
			idx = MSM_CAMERA_BUF_MNGR_IOCTL_ID_GET_BUF_BY_IDX;
			buff_mgr_info.index =
				frame_info.output_buffer_info[0].index;
		}
		rc = msm_cpp_buffer_ops(cpp_dev, ioctl_cmd, idx,
			&buff_mgr_info);
@@ -4370,6 +4372,8 @@ static long msm_cpp_subdev_fops_compat_ioctl(struct file *file,
		memset(&k64_frame_info, 0, sizeof(k64_frame_info));
		k64_frame_info.identity = k32_frame_info.identity;
		k64_frame_info.frame_id = k32_frame_info.frame_id;
		k64_frame_info.output_buffer_info[0].index =
			k32_frame_info.output_buffer_info[0].index;

		kp_ioctl.ioctl_ptr = (__force void __user *)&k64_frame_info;