Commit 16422f55 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

[media] v4l: omap4iss: Implement VIDIOC_S_INPUT

The ioctl is (at least currently) mandatory.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c3dbc70d
...@@ -902,6 +902,12 @@ iss_video_g_input(struct file *file, void *fh, unsigned int *input) ...@@ -902,6 +902,12 @@ iss_video_g_input(struct file *file, void *fh, unsigned int *input)
return 0; return 0;
} }
static int
iss_video_s_input(struct file *file, void *fh, unsigned int input)
{
return input == 0 ? 0 : -EINVAL;
}
static const struct v4l2_ioctl_ops iss_video_ioctl_ops = { static const struct v4l2_ioctl_ops iss_video_ioctl_ops = {
.vidioc_querycap = iss_video_querycap, .vidioc_querycap = iss_video_querycap,
.vidioc_g_fmt_vid_cap = iss_video_get_format, .vidioc_g_fmt_vid_cap = iss_video_get_format,
...@@ -923,6 +929,7 @@ static const struct v4l2_ioctl_ops iss_video_ioctl_ops = { ...@@ -923,6 +929,7 @@ static const struct v4l2_ioctl_ops iss_video_ioctl_ops = {
.vidioc_streamoff = iss_video_streamoff, .vidioc_streamoff = iss_video_streamoff,
.vidioc_enum_input = iss_video_enum_input, .vidioc_enum_input = iss_video_enum_input,
.vidioc_g_input = iss_video_g_input, .vidioc_g_input = iss_video_g_input,
.vidioc_s_input = iss_video_s_input,
}; };
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment