Marek Szyprowski
bd323e28bd
[media] media: vb2: change queue initialization order
...
This patch changes the order of operations during stream on call. Now the
buffers are first queued to the driver and then the start_streaming method
is called.
This resolves the most common case when the driver needs to know buffer
addresses to enable dma engine and start streaming. Additional parameter
to start_streaming method have been added to simplify drivers code. The
driver are now obliged to check if the number of queued buffers is high
enough to enable hardware streaming. If not - it can return an error. In
such case all the buffers that have been pre-queued are invalidated.
This patch also updates all videobuf2 clients to work properly with the
changed order of operations.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Pawel Osciak <pawel@osciak.com>
CC: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
CC: Hans Verkuil <hverkuil@xs4all.nl>
CC: Tomasz Stanislawski <t.stanislaws@samsung.com>
CC: Sylwester Nawrocki <s.nawrocki@samsung.com>
CC: Kamil Debski <k.debski@samsung.com>
CC: Jonathan Corbet <corbet@lwn.net>
CC: Josh Wu <josh.wu@atmel.com>
CC: Hans de Goede <hdegoede@redhat.com>
CC: Paul Mundt <lethal@linux-sh.org>
Tested-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-09-06 15:07:20 -03:00
..
davinci
[media] davinci vpbe: VENC( Video Encoder) implementation
2011-07-27 17:53:10 -03:00
adp1653.h
[media] adp1653: Add driver for LED flash controller
2011-07-27 17:55:39 -03:00
adv7343.h
ak881x.h
atmel-isi.h
[media] V4L: at91: add Atmel Image Sensor Interface (ISI) support
2011-07-27 17:53:23 -03:00
bt819.h
[media] bt819: the ioctls in the header are internal to the kernel
2010-12-29 08:17:19 -02:00
cs53l32a.h
cs5345.h
cx2341x.h
[media] v4l2-ctrls: use const char * const * for the menu arrays
2010-12-30 08:02:14 -02:00
cx25840.h
i2c-addr.h
ir-kbd-i2c.h
[media] rc: Rename remote controller type to rc_type instead of ir_type
2010-12-29 08:16:50 -02:00
lirc.h
Fix common misspellings
2011-03-31 11:26:23 -03:00
lirc_dev.h
[media] lirc_dev: store cdev in irctl, up maxdevs
2011-06-11 09:03:20 -03:00
m5mols.h
[media] m5mols: Use proper email address format
2011-06-11 09:46:00 -03:00
m52790.h
media-device.h
[media] media: Links setup
2011-03-22 04:53:16 -03:00
media-devnode.h
[media] media: Media device node support
2011-03-22 04:52:22 -03:00
media-entity.h
[media] media: Pipelines and media streams
2011-03-22 04:53:17 -03:00
mmp-camera.h
[media] marvell-cam: Basic working MMP camera driver
2011-07-27 17:53:01 -03:00
msp3400.h
mt9t112.h
mt9v011.h
[media] v4l2-subdev: remove core.s_config and v4l2_i2c_new_subdev_cfg()
2011-01-19 11:45:30 -02:00
mt9v032.h
[media] v4l: Add mt9v032 sensor driver
2011-05-20 09:29:49 -03:00
noon010pc30.h
[media] Add v4l2 subdev driver for NOON010PC30L image sensor
2011-03-21 20:31:40 -03:00
omap1_camera.h
ov772x.h
ov7670.h
[media] marvell-cam: Move cafe-ccic into its own directory
2011-07-27 17:53:00 -03:00
pwc-ioctl.h
radio-si4713.h
rc-core.h
[media] rc-core.h: Surround macro with do {} while (0)
2011-09-03 20:56:22 -03:00
rc-map.h
[media] rc-core support for Microsoft IR keyboard/mouse
2011-07-27 17:55:59 -03:00
rj54n1cb0c.h
s5p_fimc.h
[media] s5p-fimc: Add a platform data entry for MIPI-CSI data alignment
2011-03-22 04:54:18 -03:00
saa6588.h
[media] saa6588: rename rds.h to saa6588.h
2010-12-29 08:17:18 -02:00
saa6752hs.h
saa7115.h
saa7127.h
saa7146.h
[media] saa7146: Use current logging styles
2011-09-03 20:54:14 -03:00
saa7146_vv.h
sh_mobile_ceu.h
[media] V4L: sh_mobile_csi2: switch away from using the soc-camera bus notifier
2011-07-27 17:56:08 -03:00
sh_mobile_csi2.h
[media] V4L: sh_mobile_csi2: switch away from using the soc-camera bus notifier
2011-07-27 17:56:08 -03:00
sh_vou.h
si4713.h
[media] radio-si4713: Add regulator framework support
2010-12-29 08:16:35 -02:00
soc_camera.h
[media] V4L: soc-camera: remove soc-camera bus and devices on it
2011-07-27 17:56:08 -03:00
soc_camera_platform.h
[media] V4L: soc-camera: remove soc-camera bus and devices on it
2011-07-27 17:56:08 -03:00
soc_mediabus.h
[media] V4L: soc-camera: add a new packing for YUV 4:2:0 type formats
2011-05-20 12:05:08 -03:00
sr030pc30.h
timb_radio.h
[media] radio-timb: Simplified platform data
2011-07-27 17:53:07 -03:00
timb_video.h
[media] media: Add timberdale video-in driver
2010-12-29 08:16:46 -02:00
tuner-types.h
tuner.h
[media] dib0700: add initial code for PCTV 340e by Davide Ferri
2011-07-27 17:52:25 -03:00
tvaudio.h
tveeprom.h
tvp514x.h
tvp5150.h
tvp7002.h
tw9910.h
upd64031a.h
upd64083.h
v4l2-chip-ident.h
[media] V4L: initial driver for ov5642 CMOS sensor
2011-07-27 17:56:09 -03:00
v4l2-common.h
[media] v4l2_prio: move from v4l2-common to v4l2-dev
2011-03-22 16:37:54 -03:00
v4l2-ctrls.h
[media] v4l2-ctrls/v4l2-events: small coding style cleanups
2011-07-27 17:53:34 -03:00
v4l2-dev.h
[media] v4l: Fix media_entity_to_video_device macro argument name
2011-06-01 09:42:03 -03:00
v4l2-device.h
[media] v4l2-device: fix a macro definition
2011-04-13 09:53:29 -03:00
v4l2-event.h
[media] v4l2-event.h: add overview documentation to the header
2011-07-27 17:53:34 -03:00
v4l2-fh.h
[media] v4l2-event/ctrls/fh: allocate events per fh and per type instead of just per-fh
2011-07-27 17:53:31 -03:00
v4l2-int-device.h
v4l2-ioctl.h
[media] v4l2-ioctl: add priority handling support
2011-03-22 16:37:59 -03:00
v4l2-mediabus.h
[media] V4L: add media bus configuration subdev operations
2011-07-27 17:56:08 -03:00
v4l2-mem2mem.h
[media] Update Pawel Osciak's e-mail address
2011-03-22 04:55:05 -03:00
v4l2-subdev.h
[media] V4L: add media bus configuration subdev operations
2011-07-27 17:56:08 -03:00
videobuf-core.h
[media] V4L: remove V4L1 compatibility mode
2010-12-29 08:17:07 -02:00
videobuf-dma-contig.h
videobuf-dma-sg.h
videobuf-dvb.h
[media] Add missing include guard to header file
2011-05-25 21:42:30 -03:00
videobuf-vmalloc.h
videobuf2-core.h
[media] media: vb2: change queue initialization order
2011-09-06 15:07:20 -03:00
videobuf2-dma-contig.h
[media] media: vb2: dma contig allocator: use dma_addr instread of paddr
2011-09-06 15:05:10 -03:00
videobuf2-dma-sg.h
[media] v4l: videobuf2: add DMA scatter/gather allocator
2011-03-21 20:31:34 -03:00
videobuf2-memops.h
[media] Update Pawel Osciak's e-mail address
2011-03-22 04:55:05 -03:00
videobuf2-vmalloc.h
[media] Update Pawel Osciak's e-mail address
2011-03-22 04:55:05 -03:00
wm8775.h
[media] Add proper audio support for Nova-S Plus with wm8775 ADC
2011-03-21 20:32:19 -03:00