libcamera: pipelines: Use sensor ID as camera name

Use the CameraSensor ID as the camera name in pipelines that uses a
CameraSensors, this is done in preparation of turning the camera name
into an ID. The CameraSensor ID meets the requirements that will be put
on camera ID.

Before this change example of camera names:

* OF based systems
    ov5695 7-0036
    ov2685 7-003c

* ACPI based systems
    ov13858 8-0010
    ov5670 10-0036

* VIMC
    VIMC Sensor B

After this change the same cameras are:

* OF based systems
    /base/i2c@ff160000/camera@36
    /base/i2c@ff160000/camera@36

* ACPI based systems
    \_SB_.PCI0.I2C2.CAM0
    \_SB_.PCI0.I2C4.CAM1

* VIMC
    platform/vimc.0 Sensor B

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Niklas Söderlund 2020-07-27 20:08:13 +02:00
parent 082a5b2dfe
commit 75a9aebee5
13 changed files with 18 additions and 18 deletions

View file

@ -28,7 +28,7 @@ class BufferImportTest : public CameraTest, public Test
{
public:
BufferImportTest()
: CameraTest("VIMC Sensor B")
: CameraTest("platform/vimc.0 Sensor B")
{
}

View file

@ -18,7 +18,7 @@ class Capture : public CameraTest, public Test
{
public:
Capture()
: CameraTest("VIMC Sensor B")
: CameraTest("platform/vimc.0 Sensor B")
{
}

View file

@ -18,7 +18,7 @@ class ConfigurationDefault : public CameraTest, public Test
{
public:
ConfigurationDefault()
: CameraTest("VIMC Sensor B")
: CameraTest("platform/vimc.0 Sensor B")
{
}

View file

@ -18,7 +18,7 @@ class ConfigurationSet : public CameraTest, public Test
{
public:
ConfigurationSet()
: CameraTest("VIMC Sensor B")
: CameraTest("platform/vimc.0 Sensor B")
{
}

View file

@ -18,7 +18,7 @@ class Statemachine : public CameraTest, public Test
{
public:
Statemachine()
: CameraTest("VIMC Sensor B")
: CameraTest("platform/vimc.0 Sensor B")
{
}