All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCHv2 00/11] Dynamic arrays and read-only requests
@ 2021-06-10 11:36 Hans Verkuil
  2021-06-10 11:36 ` [RFC PATCHv2 01/11] videodev2.h: add V4L2_CTRL_FLAG_DYNAMIC_ARRAY Hans Verkuil
                   ` (10 more replies)
  0 siblings, 11 replies; 20+ messages in thread
From: Hans Verkuil @ 2021-06-10 11:36 UTC (permalink / raw)
  To: linux-media
  Cc: Yunfei Dong, Dikshita Agarwal, Ezequiel Garcia, John Cox,
	Nicolas Dufresne

This RFC series adds support for dynamic arrays and for read-only
requests. This respins and combines these older series:

Adding dynamic array controls:

https://patchwork.linuxtv.org/project/linux-media/cover/20210428101841.696059-1-hverkuil-cisco@xs4all.nl/

Adding support for read-only requests:

https://patchwork.linuxtv.org/project/linux-media/cover/20200818143719.102128-1-hverkuil-cisco@xs4all.nl/

The dynamic array support (patches 1-3) is pretty much the same as the
original series, just rebased.

The read-only request support (patches 4-11) is greatly simplified compared
to the original due to this patch that was merged recently:

https://patchwork.linuxtv.org/project/linux-media/patch/20210428101841.696059-2-hverkuil-cisco@xs4all.nl/

This made the read-only request implementation a lot easier.

Patches 1-3 and 4-11 are independent of one another.

The only reason this series is marked RFC is that it needs some
documentation improvements (or at the least, verification that
everything is properly documented), and it needs a real driver
that implements the feature.

I have CC-ed those who I know are/have been working on either
dynamic arrays or read-only requests, so if you want to get this
into the kernel, then submit patches for a driver, and include the
support from this RFC series.

I'll post a short series next for v4l-utils, adding support for
these two features.

Regards,

	Hans

Hans Verkuil (11):
  videodev2.h: add V4L2_CTRL_FLAG_DYNAMIC_ARRAY
  v4l2-ctrls: add support for dynamically allocated arrays.
  vivid: add dynamic array test control
  media: document read-only requests
  videodev2.h: add V4L2_BUF_CAP_SUPPORTS_RO_REQUESTS
  videobuf2-core: add vb2_request_buffer_first()
  videobuf2-v4l2.c: vb2_request_validate: support RO requests
  v4l2-mem2mem.c: allow requests for capture queues
  vivid: add ro_requests module option
  vim2m: support read-only requests on the capture queue
  vicodec: add support for read-only requests

 Documentation/admin-guide/media/vivid.rst     |  10 +
 .../mediactl/media-request-ioc-queue.rst      |   5 +
 .../media/mediactl/request-api.rst            |  11 ++
 .../media/v4l/vidioc-queryctrl.rst            |   8 +
 .../media/v4l/vidioc-reqbufs.rst              |   6 +
 .../media/common/videobuf2/videobuf2-core.c   |  22 +++
 .../media/common/videobuf2/videobuf2-v4l2.c   |  23 ++-
 .../media/test-drivers/vicodec/vicodec-core.c |  67 +++----
 drivers/media/test-drivers/vim2m.c            |  10 +-
 drivers/media/test-drivers/vivid/vivid-core.c |  10 +
 .../media/test-drivers/vivid/vivid-ctrls.c    |  15 ++
 drivers/media/v4l2-core/v4l2-ctrls-api.c      | 103 +++++++---
 drivers/media/v4l2-core/v4l2-ctrls-core.c     | 182 ++++++++++++++----
 drivers/media/v4l2-core/v4l2-ctrls-priv.h     |   3 +-
 drivers/media/v4l2-core/v4l2-ctrls-request.c  |  13 +-
 drivers/media/v4l2-core/v4l2-mem2mem.c        |  16 +-
 include/media/v4l2-ctrls.h                    |  42 +++-
 include/media/videobuf2-core.h                |   8 +
 include/uapi/linux/videodev2.h                |   2 +
 19 files changed, 440 insertions(+), 116 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-02-04 17:01 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 11:36 [RFC PATCHv2 00/11] Dynamic arrays and read-only requests Hans Verkuil
2021-06-10 11:36 ` [RFC PATCHv2 01/11] videodev2.h: add V4L2_CTRL_FLAG_DYNAMIC_ARRAY Hans Verkuil
2022-02-04 17:01   ` Nicolas Dufresne
2021-06-10 11:36 ` [RFC PATCHv2 02/11] v4l2-ctrls: add support for dynamically allocated arrays Hans Verkuil
2021-06-26 16:37   ` Daniel Almeida
2021-06-26 16:42   ` Daniel Almeida
2021-06-28  9:39     ` John Cox
2021-07-05  9:13     ` Hans Verkuil
     [not found]   ` <ccaf0fa9-8be6-c623-61c7-91cb804ca2bf@collabora.com>
2021-08-11 15:46     ` Ezequiel Garcia
2021-08-11 15:59       ` John Cox
2021-08-27 12:44         ` Ezequiel Garcia
2021-06-10 11:36 ` [RFC PATCHv2 03/11] vivid: add dynamic array test control Hans Verkuil
2021-06-10 11:36 ` [RFC PATCHv2 04/11] media: document read-only requests Hans Verkuil
2021-06-10 11:36 ` [RFC PATCHv2 05/11] videodev2.h: add V4L2_BUF_CAP_SUPPORTS_RO_REQUESTS Hans Verkuil
2021-06-10 11:36 ` [RFC PATCHv2 06/11] videobuf2-core: add vb2_request_buffer_first() Hans Verkuil
2021-06-10 11:36 ` [RFC PATCHv2 07/11] videobuf2-v4l2.c: vb2_request_validate: support RO requests Hans Verkuil
2021-06-10 11:36 ` [RFC PATCHv2 08/11] v4l2-mem2mem.c: allow requests for capture queues Hans Verkuil
2021-06-10 11:36 ` [RFC PATCHv2 09/11] vivid: add ro_requests module option Hans Verkuil
2021-06-10 11:36 ` [RFC PATCHv2 10/11] vim2m: support read-only requests on the capture queue Hans Verkuil
2021-06-10 11:36 ` [RFC PATCHv2 11/11] vicodec: add support for read-only requests Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.