diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-12-29 12:29:55 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-30 05:02:29 -0500 |
commit | 657f2271050beabe725ba101c1d840f51a41f33d (patch) | |
tree | 740e898564868e8900ed3b61fc6d57b44e114b57 /drivers/media/video/vino.c | |
parent | 3ea2b673a55cee528f83653e711d09425ed4d8b6 (diff) |
[media] v4l: fix handling of v4l2_input.capabilities
The v4l core sets the v4l2_input.capabilities field based on the supplied
v4l2_ioctl_ops. However, several drivers do a memset or memcpy of the v4l2_input
struct, thus overwriting that field incorrectly.
Either remove the memset (which is already done by the v4l core), or add the
proper capabilities field in case of a memcpy.
The same is also true for v4l2_output, but that only affected the ivtv driver.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/vino.c')
-rw-r--r-- | drivers/media/video/vino.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c index 7e7eec48f8b1..d63e9d978493 100644 --- a/drivers/media/video/vino.c +++ b/drivers/media/video/vino.c | |||
@@ -2954,9 +2954,6 @@ static int vino_enum_input(struct file *file, void *__fh, | |||
2954 | if (input == VINO_INPUT_NONE) | 2954 | if (input == VINO_INPUT_NONE) |
2955 | return -EINVAL; | 2955 | return -EINVAL; |
2956 | 2956 | ||
2957 | memset(i, 0, sizeof(struct v4l2_input)); | ||
2958 | |||
2959 | i->index = index; | ||
2960 | i->type = V4L2_INPUT_TYPE_CAMERA; | 2957 | i->type = V4L2_INPUT_TYPE_CAMERA; |
2961 | i->std = vino_inputs[input].std; | 2958 | i->std = vino_inputs[input].std; |
2962 | strcpy(i->name, vino_inputs[input].name); | 2959 | strcpy(i->name, vino_inputs[input].name); |