linux-sg2042/drivers/media/v4l2-core
Hans Verkuil 32a7726031 [media] videobuf2-core: move plane verification out of __fill_v4l2/vb_buffer
The plane verification should be done before actually queuing or
dequeuing buffers, so move it out of __fill_v4l2_buffer and __fill_vb_buffer
and call it as a separate step.
This also makes it possible to change the return type of __fill_v4l2/vb_buffer
to void.
The dqbuf case took some special care: before removing a buffer from the
done_list you have to verify that the receiving v4l2_buffer has enough room
for all the planes. The number of planes can differ between buffers due to the
fact that buffers for other formats can be prepared using VIDIOC_PREPARE_BUF.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-10-05 22:21:40 -03:00
..
Kconfig
Makefile
tuner-core.c
v4l2-common.c [media] v4l2: spi modalias is an array 2012-09-27 04:42:37 -03:00
v4l2-compat-ioctl32.c [media] v4l2-core: deprecate V4L2_BUF_TYPE_PRIVATE 2012-09-26 09:38:15 -03:00
v4l2-ctrls.c [media] media: v4l2-ctrl: add a helper function to add standard control with driver specific menu 2012-10-05 21:48:03 -03:00
v4l2-dev.c [media] v4l2-dev: reorder checks into blocks of ioctls with similar properties 2012-09-26 14:52:07 -03:00
v4l2-device.c [media] v4l2-ctrls: add a filter function to v4l2_ctrl_add_handler 2012-10-01 17:07:07 -03:00
v4l2-event.c [media] v4l2: make vidioc_(un)subscribe_event const 2012-09-26 10:48:52 -03:00
v4l2-fh.c
v4l2-int-device.c
v4l2-ioctl.c [media] v4l2-ioctl.c: fix overlay support 2012-10-01 14:56:42 -03:00
v4l2-mem2mem.c [media] media v4l2-mem2mem: Use list_first_entry 2012-09-18 12:14:05 -03:00
v4l2-subdev.c
videobuf-core.c
videobuf-dma-contig.c
videobuf-dma-sg.c
videobuf-dvb.c
videobuf-vmalloc.c
videobuf2-core.c [media] videobuf2-core: move plane verification out of __fill_v4l2/vb_buffer 2012-10-05 22:21:40 -03:00
videobuf2-dma-contig.c
videobuf2-dma-sg.c
videobuf2-memops.c
videobuf2-vmalloc.c