[media] v4l: fix handling of v4l2_input.capabilities
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 29 Dec 2010 17:29:55 +0000 (14:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 30 Dec 2010 10:02:29 +0000 (08:02 -0200)
commit657f2271050beabe725ba101c1d840f51a41f33d
tree740e898564868e8900ed3b61fc6d57b44e114b57
parent3ea2b673a55cee528f83653e711d09425ed4d8b6
[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>
15 files changed:
drivers/media/dvb/ttpci/av7110_v4l.c
drivers/media/dvb/ttpci/budget-av.c
drivers/media/video/cx18/cx18-cards.c
drivers/media/video/cx23885/cx23885-video.c
drivers/media/video/et61x251/et61x251_core.c
drivers/media/video/hexium_gemini.c
drivers/media/video/hexium_orion.c
drivers/media/video/ivtv/ivtv-cards.c
drivers/media/video/mxb.c
drivers/media/video/saa7134/saa7134-video.c
drivers/media/video/sn9c102/sn9c102_core.c
drivers/media/video/timblogiw.c
drivers/media/video/vino.c
drivers/media/video/zoran/zoran_driver.c
drivers/staging/cx25821/cx25821-video.c