linux/drivers/media/usb
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
..
airspy [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
as102 [media] as102: fix potential double free in as102_fw_upload() 2015-11-19 09:16:10 -02:00
au0828 [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
b2c2 [media] drivers: media: usb: b2c2: use usb_*_coherent() instead of pci_*_consistent() in flexcop-usb.c 2013-10-17 11:26:41 -03:00
cpia2 [media] media: fix waitqueue_active without memory barrier in cpia2 driver 2015-11-17 14:55:06 -02:00
cx231xx [media] cx231xx: fix NTSC cropcap, add missing cropcap for 417 2015-12-18 13:29:49 -02:00
dvb-usb [media] use https://linuxtv.org for LinuxTV URLs 2015-12-04 10:38:59 -02:00
dvb-usb-v2 [media] use https://linuxtv.org for LinuxTV URLs 2015-12-04 10:38:59 -02:00
em28xx [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
go7007 [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
gspca [media] gspca: ov534/topro: prevent a division by 0 2015-11-17 14:54:25 -02:00
hackrf [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
hdpvr [media] v4l2-dv-timings: add new arg to v4l2_match_dv_timings 2015-12-03 11:26:14 -02:00
msi2500 [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
pvrusb2 [media] media/usb/pvrusb2: Support for V4L2_CTRL_WHICH_DEF_VAL 2015-11-17 14:46:44 -02:00
pwc [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
s2255 [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
siano [media] siano: avoid a linkedit error if !MC 2015-03-02 14:17:01 -03:00
stk1160 [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
stkwebcam [media] stk-webcam: Delete an unnecessary check before the function call "vfree" 2015-03-02 14:53:27 -03:00
tm6000 [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
ttusb-budget [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
ttusb-dec [media] ttusb-dec: constify ttusbdecfe_config structure 2015-11-19 11:22:15 -02:00
usbtv [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
usbvision [media] usbvision: fix crash on detecting device with invalid configuration 2015-11-19 11:36:02 -02:00
uvc [media] vb2: drop v4l2_format argument from queue_setup 2015-12-18 13:48:19 -02:00
zr364xx [media] usb drivers: use BUG_ON() instead of if () BUG 2015-06-09 18:30:09 -03:00
Kconfig [media] tlg2300: move to staging in preparation for removal 2014-12-16 23:21:43 -02:00
Makefile [media] tlg2300: move to staging in preparation for removal 2014-12-16 23:21:43 -02:00