linux/drivers/media/usb/cx231xx
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] cx231xx: Add missing selects for MEDIA_SUBDRV_AUTOSELECT 2014-01-07 06:50:09 -02:00
Makefile
cx231xx-417.c [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00
cx231xx-audio.c [media] Convert to snd_card_new() with a device pointer 2014-02-14 08:14:09 +01:00
cx231xx-avcore.c [media] cx231xx: remove g_chip_ident 2013-06-17 08:45:43 -03:00
cx231xx-cards.c [media] cx231xx: add support for a CX23103 Video Grabber USB 2014-01-07 09:46:36 -02:00
cx231xx-conf-reg.h
cx231xx-core.c [media] cx231xx: fix big-endian problems 2013-03-05 14:26:07 -03:00
cx231xx-dif.h
cx231xx-dvb.c [media] cx231xx: Add support for KWorld UB445-U 2013-08-23 05:42:33 -03:00
cx231xx-i2c.c [media] cx231xx: Add missing KERN_CONT to i2c debug prints 2014-01-07 08:46:51 -02:00
cx231xx-input.c [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
cx231xx-pcb-cfg.c [media] cx231xx: fix sparse warnings 2013-10-15 13:00:25 -03:00
cx231xx-pcb-cfg.h [media] media/usb: cx231xx-pcb-cfg.h: Remove unused enum _true_false 2013-03-14 11:46:07 -03:00
cx231xx-reg.h
cx231xx-vbi.c [media] cx231xx: remove g_chip_ident 2013-06-17 08:45:43 -03:00
cx231xx-vbi.h
cx231xx-video.c [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00
cx231xx.h [media] cx231xx: Add support for KWorld UB445-U 2013-08-23 05:42:33 -03:00