[libcamera-devel] [PATCH 0/2] libcamera: Enable V4L2 subdev streams support

Laurent Pinchart laurent.pinchart at ideasonboard.com
Wed Jan 17 15:42:33 CET 2024


Hello,

In v6.4, new subdev ioctls were introduced to gate streams support
behind a V4L2 subdev client capability mechanism. Without enabling the
capability, the stream arguments to subdev ioctls is ignored (subdev
internal routing configuration still works, but all routes then hardcode
stream 0 on both the sink and source sides).

This small patch series updates libcamera to enable the stream
capbility. It starts by updating the kernel headers in patch 1/2
(updating to v6.4 would have been enough, but there's no reason not to
use the most recent headers), and then enables the client capability in
patch 2/2.

Laurent Pinchart (2):
  include: linux: Update kernel headers to version v6.7
  libcamera: v4l2_subdevice: Enable streams API when supported

 include/libcamera/internal/v4l2_subdevice.h |    2 +-
 include/linux/README                        |    2 +-
 include/linux/dma-buf.h                     |   84 ++
 include/linux/drm_fourcc.h                  |  128 +-
 include/linux/intel-ipu3.h                  |    7 +-
 include/linux/media-bus-format.h            |   13 +-
 include/linux/media.h                       |   29 +-
 include/linux/v4l2-common.h                 |   39 -
 include/linux/v4l2-controls.h               | 1250 ++++++++++++++++++-
 include/linux/v4l2-mediabus.h               |    4 -
 include/linux/v4l2-subdev.h                 |   56 +-
 include/linux/videodev2.h                   |   69 +-
 src/libcamera/v4l2_subdevice.cpp            |   15 +
 13 files changed, 1551 insertions(+), 147 deletions(-)


base-commit: 89227a428a82e724548399d35c98ea89566f9045
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list