OpenCloudOS-Kernel/drivers/media/pci/cx18
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
Makefile
cx18-alsa-main.c [media] Convert to snd_card_new() with a device pointer 2014-02-14 08:14:09 +01:00
cx18-alsa-mixer.c
cx18-alsa-mixer.h
cx18-alsa-pcm.c [media] cx18: get rid of warning: no previous prototype 2012-10-27 17:58:14 -02:00
cx18-alsa-pcm.h [media] cx18/ivtv: fix regression: remove __init from a non-init function 2013-02-11 18:18:14 -02:00
cx18-alsa.h [media] cx18: remove duplicate CX18_ALSA_DBGFLG_WARN define 2014-07-04 16:09:57 -03:00
cx18-audio.c
cx18-audio.h
cx18-av-audio.c
cx18-av-core.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
cx18-av-core.h [media] cx18: remove g_chip_ident support 2013-06-17 08:41:17 -03:00
cx18-av-firmware.c
cx18-av-vbi.c
cx18-cards.c
cx18-cards.h
cx18-controls.c
cx18-controls.h
cx18-driver.c [media] cx18: check for allocation failure in cx18_read_eeprom() 2013-12-10 15:36:11 -02:00
cx18-driver.h [media] media_tree: Fix spelling errors 2013-11-29 14:43:50 -02:00
cx18-dvb.c
cx18-dvb.h
cx18-fileops.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
cx18-fileops.h
cx18-firmware.c
cx18-firmware.h
cx18-gpio.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
cx18-gpio.h
cx18-i2c.c [media] media: cx18, ivtv: eliminate unnecessary array index checks 2013-02-05 19:19:44 -02:00
cx18-i2c.h
cx18-io.c
cx18-io.h
cx18-ioctl.c [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00
cx18-ioctl.h [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
cx18-irq.c
cx18-irq.h
cx18-mailbox.c
cx18-mailbox.h
cx18-queue.c
cx18-queue.h
cx18-scb.c
cx18-scb.h
cx18-streams.c [media] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO 2014-07-04 16:14:59 -03:00
cx18-streams.h
cx18-vbi.c [media] drivers/media/pci: use memmove for overlapping regions 2013-02-05 19:26:38 -02:00
cx18-vbi.h
cx18-version.h
cx18-video.c
cx18-video.h
cx23418.h