linux/drivers/media/platform/davinci
Hans Verkuil df9ecb0cad [media] vb2: drop v4l2_format argument from queue_setup
The queue_setup callback has a void pointer that is just for V4L2
and is the pointer to the v4l2_format struct that was passed to
VIDIOC_CREATE_BUFS. The idea was that drivers would use the information
from that struct to buffers suitable for the requested format.

After the vb2 split series this pointer is now a void pointer,
which is ugly, and the reality is that all existing drivers will
effectively just look at the sizeimage field of v4l2_format.

To make this more generic the queue_setup callback is changed:
the void pointer is dropped, instead if the *num_planes argument
is 0, then use the current format size, if it is non-zero, then
it contains the number of requested planes and the sizes array
contains the requested sizes. If either is unsupported, then return
-EINVAL, otherwise use the requested size(s).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-12-18 13:48:19 -02:00
..
ccdc_hw_device.h
dm355_ccdc_regs.h [media] davinci: more gama -> gamma typo fixes 2013-03-19 16:16:23 -03:00
dm355_ccdc.c media: platform: davinci: drop owner assignment from platform_drivers 2014-10-20 16:20:45 +02:00
dm644x_ccdc_regs.h [media] davinci/dm644x_ccdc: fix compiler warning 2013-03-19 16:16:04 -03:00
dm644x_ccdc.c media: platform: davinci: drop owner assignment from platform_drivers 2014-10-20 16:20:45 +02:00
isif_regs.h [media] davinci: more gama -> gamma typo fixes 2013-03-19 16:16:23 -03:00
isif.c media: platform: davinci: drop owner assignment from platform_drivers 2014-10-20 16:20:45 +02:00
Kconfig [media] davinci: add i2c Kconfig dependencies 2015-11-19 12:03:52 -02:00
Makefile [media] media: davinci: kconfig: fix incorrect selects 2013-04-14 20:06:36 -03:00
vpbe_display.c [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
vpbe_osd_regs.h
vpbe_osd.c media: platform: davinci: drop owner assignment from platform_drivers 2014-10-20 16:20:45 +02:00
vpbe_venc_regs.h
vpbe_venc.c media: platform: davinci: drop owner assignment from platform_drivers 2014-10-20 16:20:45 +02:00
vpbe.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
vpfe_capture.c [media] v4l2: replace video op g_mbus_fmt by pad op get_fmt 2015-05-01 08:36:17 -03:00
vpif_capture.c [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
vpif_capture.h [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
vpif_display.c [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
vpif_display.h [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
vpif.c media: platform: davinci: drop owner assignment from platform_drivers 2014-10-20 16:20:45 +02:00
vpif.h [media] davinci: vpif: Fix module build for capture and display 2013-03-23 10:38:10 -03:00
vpss.c media: platform: davinci: drop owner assignment from platform_drivers 2014-10-20 16:20:45 +02:00