linux_dsm_epyc7002/drivers/media/video/pwc
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
..
Kconfig [media] pwc: Replace private buffer management code with videobuf2 2011-07-27 17:53:43 -03:00
Makefile V4L/DVB (5166): Remove obsolete alias defines of CONFIG_* settings 2007-02-21 13:35:11 -02:00
philips.txt tree-wide: Assorted spelling fixes 2010-02-09 11:13:56 +01:00
pwc-ctrl.c [media] pwc: clean-up header files 2011-07-27 17:55:37 -03:00
pwc-dec1.c [media] pwc: Move various initialization to driver load and / or stream start 2011-07-27 17:53:44 -03:00
pwc-dec1.h [media] pwc: Move various initialization to driver load and / or stream start 2011-07-27 17:53:44 -03:00
pwc-dec23.c [media] pwc: Move various initialization to driver load and / or stream start 2011-07-27 17:53:44 -03:00
pwc-dec23.h [media] pwc: Move various initialization to driver load and / or stream start 2011-07-27 17:53:44 -03:00
pwc-if.c [media] media: vb2: change queue initialization order 2011-09-06 15:07:20 -03:00
pwc-kiara.c [media] pwc: clean-up header files 2011-07-27 17:55:37 -03:00
pwc-kiara.h V4L/DVB (5547): Add ENUM_FRAMESIZES and ENUM_FRAMEINTERVALS ioctls 2007-04-27 15:45:50 -03:00
pwc-misc.c [media] pwc: Replace private buffer management code with videobuf2 2011-07-27 17:53:43 -03:00
pwc-nala.h V4L/DVB (3599b): Whitespace cleanups under drivers/media 2006-03-25 09:29:23 -03:00
pwc-timon.c V4L/DVB (5547): Add ENUM_FRAMESIZES and ENUM_FRAMEINTERVALS ioctls 2007-04-27 15:45:50 -03:00
pwc-timon.h V4L/DVB (5547): Add ENUM_FRAMESIZES and ENUM_FRAMEINTERVALS ioctls 2007-04-27 15:45:50 -03:00
pwc-uncompress.c [media] pwc: clean-up header files 2011-07-27 17:55:37 -03:00
pwc-v4l.c [media] pwc: Add v4l2 controls for pan/tilt on Logitech QuickCam Orbit/Sphere 2011-07-27 17:53:45 -03:00
pwc.h [media] pwc: clean-up header files 2011-07-27 17:55:37 -03:00