linux_dsm_epyc7002/drivers/media/pci/cx25821
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
..
cx25821-alsa.c [media] Convert to snd_card_new() with a device pointer 2014-02-14 08:14:09 +01:00
cx25821-audio-upstream.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-05-01 17:51:54 -07:00
cx25821-audio-upstream.h
cx25821-audio.h
cx25821-biffuncs.h [media] cx25821: get rid of warning: no previous prototype 2012-10-27 18:02:07 -02:00
cx25821-cards.c [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-core.c [media] media: pci: remove DEFINE_PCI_DEVICE_TABLE macro 2013-12-10 16:39:25 -02:00
cx25821-gpio.c [media] cx25821: remove bogus dependencies 2013-04-16 18:03:27 -03:00
cx25821-i2c.c [media] cx25821: remove bogus dependencies 2013-04-16 18:03:27 -03:00
cx25821-medusa-defines.h
cx25821-medusa-reg.h
cx25821-medusa-video.c [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-medusa-video.h [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-reg.h
cx25821-sram.h
cx25821-video-upstream.c [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-video-upstream.h
cx25821-video.c [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00
cx25821-video.h [media] cx25821: setup output nodes correctly 2013-04-16 18:09:57 -03:00
cx25821.h [media] cx25821: replace custom ioctls with write() 2013-04-16 18:12:34 -03:00
Kconfig [media] cx25821: remove bogus dependencies 2013-04-16 18:03:27 -03:00
Makefile [media] cx25821: remove cx25821-audio-upstream.c from the Makefile 2013-04-16 18:13:06 -03:00