mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 23:09:45 +03:00
libcamera: v4l2_subdevice: Update to the new kernel routing API
The subdev embedded data support series includes a change to the VIDIOC_SUBDEV_G_ROUTING and VIDIOC_SUBDEV_S_ROUTING ioctls that impacts the userspace API. Update to the new API, while preserving backward compatibility to ease the transition. Document the backward compatibility to only be supported for two kernel releases. As the routing API isn't enabled in any upstream kernel yet, users of the API need kernel patches, and are expected to be able to upgrade quickly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
70d553812e
commit
6cd17515ff
2 changed files with 121 additions and 4 deletions
|
@ -176,6 +176,9 @@ private:
|
|||
std::vector<SizeRange> enumPadSizes(const Stream &stream,
|
||||
unsigned int code);
|
||||
|
||||
int getRoutingLegacy(Routing *routing, Whence whence);
|
||||
int setRoutingLegacy(Routing *routing, Whence whence);
|
||||
|
||||
const MediaEntity *entity_;
|
||||
|
||||
std::string model_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue