WSL2-Linux-Kernel/drivers/media/usb/tm6000
Laurent Pinchart d52e238136 [media] v4l: Support extending the v4l2_pix_format structure
The v4l2_pix_format structure has no reserved field. It is embedded in
the v4l2_framebuffer structure which has no reserved fields either, and
in the v4l2_format structure which has reserved fields that were not
previously required to be zeroed out by applications.

To allow extending v4l2_pix_format, inline it in the v4l2_framebuffer
structure, and use the priv field as a magic value to indicate that the
application has set all v4l2_pix_format extended fields and zeroed all
reserved fields following the v4l2_pix_format field in the v4l2_format
structure.

The availability of this API extension is reported to userspace through
the new V4L2_CAP_EXT_PIX_FORMAT capability flag. Just checking that the
priv field is still set to the magic value at [GS]_FMT return wouldn't
be enough, as older kernels don't zero the priv field on return.

To simplify the internal API towards drivers zero the extended fields
and set the priv field to the magic value for applications not aware of
the extensions.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-17 12:44:47 -03:00
..
Kconfig [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
Makefile [media] Fix some Makefile rules 2012-08-16 19:55:03 -03:00
tm6000-alsa.c Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2014-04-04 09:50:07 -07:00
tm6000-cards.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
tm6000-core.c [media] tm6000: check an allocation for failure 2013-02-08 14:46:56 -02:00
tm6000-dvb.c [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
tm6000-i2c.c [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
tm6000-input.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
tm6000-regs.h [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
tm6000-stds.c [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
tm6000-usb-isoc.h [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
tm6000-video.c [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00
tm6000.h [media] tm6000: add support for control events and prio handling 2013-02-05 18:31:33 -02:00