[libcamera-devel,v2,1/4] libcamera: properties: Provide a Devices camera property
diff mbox series

Message ID 20230511224830.356416-3-kieran.bingham@ideasonboard.com
State Superseded
Headers show
Series
  • [libcamera-devel,v2,1/4] libcamera: properties: Provide a Devices camera property
Related show

Commit Message

Kieran Bingham May 11, 2023, 10:48 p.m. UTC
Provide a new Camera property that allows pipeline handlers to list any
devices used to operate the device. 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.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 src/libcamera/property_ids.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch
diff mbox series

diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml
index cb55e0ed2283..4fed8f862efb 100644
--- a/src/libcamera/property_ids.yaml
+++ b/src/libcamera/property_ids.yaml
@@ -690,6 +690,14 @@  controls:
         that is twice that of the full resolution mode. This value will be valid
         after the configure method has returned successfully.
 
+
+  - Devices:
+      type: int64_t
+      size: [n]
+      description: |
+        A list of integer values of type dev_t denoting major and minor device
+        number of the underlying devices used in the operation of this camera.
+
   # ----------------------------------------------------------------------------
   # Draft properties section