From 1de9518f51a92ee931ccb5041049e147a46ff65b Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Sun, 5 Feb 2023 18:15:43 +0000 Subject: libcamera: properties: Provide a Devices camera property Provide a new Camera property that allows pipeline handlers to list any kernel device used to operate the camera. This allows other frameworks and daemons such as PipeWire to better understand the resources consumed by a Camera and consider ignoring those resources when enumerating camera devices on a system. Tested-by: Ashok Sidipotu Reviewed-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- src/libcamera/property_ids.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml index cb55e0ed..5bddafc2 100644 --- a/src/libcamera/property_ids.yaml +++ b/src/libcamera/property_ids.yaml @@ -690,6 +690,16 @@ controls: that is twice that of the full resolution mode. This value will be valid after the configure method has returned successfully. + - SystemDevices: + type: int64_t + size: [n] + description: | + A list of integer values of type dev_t denoting the major and minor + device numbers of the underlying devices used in the operation of this + camera. + + Different cameras may report identical devices. + # ---------------------------------------------------------------------------- # Draft properties section -- cgit v1.2.1