[libcamera-devel] [PATCH v5 0/5] libcamera: Generate unique and stable camera names

Niklas Söderlund niklas.soderlund at ragnatech.se
Wed Jul 29 13:50:50 CEST 2020


Hello,

This series aims to make and enforce unique camera names that are static
between system resets. This version is a complete rewrite of v1 and v2 
of this series that centered around bus and location information instead 
of this v3 that focus on firmware descriptions.

Before this series camera names on different systems looked like this (I
do not have access to a simple pipeline device):

- ipu3
    ov13858 8-0010
    ov5670 10-0036
- raspberrypi
    imx219
- rkisp1
    ov5695 7-0036
    ov2685 7-003c
- uvcvideo
    Venus USB2.0 Camera: Venus USB2
    Logitech Webcam C930e
- vimc
    VIMC Sensor B

With this series applied camera names on the same systems:

- ipu3
    \_SB_.PCI0.I2C2.CAM0
    \_SB_.PCI0.I2C4.CAM1
- raspberrypi
    base/soc/i2c0mux/i2c at 1/imx219 at 10
- rkisp1
    base/i2c at ff160000/camera at 36
    base/i2c at ff160000/camera at 3c
- uvcvideo
    0ac8:3420:3:10
    046d:0843:3:4
- vimc
    VIMC Sensor B

Niklas Söderlund (5):
  libcamera: v4l2_device: Add method to lookup device path
  libcamera: camera_sensor: Generate a sensor ID
  libcamera: camera: Generate camera name from a CameraSensor
  libcamera: pipeline: uvcvideo: Generate unique camera names
  libcamera: camera_manager: Enforce unique camera names

 include/libcamera/camera.h                    |  5 +
 include/libcamera/internal/camera_sensor.h    |  4 +
 include/libcamera/internal/v4l2_device.h      |  1 +
 src/libcamera/camera.cpp                      | 18 ++++
 src/libcamera/camera_manager.cpp              |  6 +-
 src/libcamera/camera_sensor.cpp               | 94 +++++++++++++++++++
 src/libcamera/pipeline/ipu3/ipu3.cpp          | 12 +--
 .../pipeline/raspberrypi/raspberrypi.cpp      |  3 +-
 src/libcamera/pipeline/rkisp1/rkisp1.cpp      |  2 +-
 src/libcamera/pipeline/simple/simple.cpp      |  2 +-
 src/libcamera/pipeline/uvcvideo/uvcvideo.cpp  | 35 ++++++-
 src/libcamera/pipeline/vimc/vimc.cpp          |  4 +-
 src/libcamera/v4l2_device.cpp                 | 24 +++++
 13 files changed, 194 insertions(+), 16 deletions(-)

-- 
2.27.0



More information about the libcamera-devel mailing list