pipewire/spa/plugins/libcamera
Hans de Goede b79f77b73d spa: libcamera: Increase devices_str[] buffer size
Some complex camera pipelines, like the IPU6 can involve many /dev/video#
nodes (32 in the IPU6 case) and the current size of 128 chars is not enough
to hold all /dev/video# nodes in this cases causing SPA_KEY_DEVICE_DEVIDS
to get truncated, which in turn breaks the filtering of V4L2 devices which
are used by a libcamera driven camera in wireplumber.

Fix this by increasing the size of devices_str[] to 256.

This fixes wireplumber adding a bunch of non-function V4L2 video sources,
e.g. before this "wpctl status" outputs the following video sources:

Video
 ├─ Devices:
...
 ├─ Sources:
 │      90. ov2740
 │  *  115. ipu6 (V4L2)
...
 │     135. ipu6 (V4L2)
 │
 ├─ Filters:

After this fix the output is:

Video
 ├─ Devices:
...
 ├─ Sources:
 │  *   92. ov2740
 │
 ├─ Filters:

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2024-08-07 10:40:55 +02:00
..
libcamera-device.cpp spa: libcamera: Increase devices_str[] buffer size 2024-08-07 10:40:55 +02:00
libcamera-manager.cpp treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
libcamera-manager.hpp treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
libcamera-source.cpp libcamera: add latency param query 2023-11-20 17:51:27 +01:00
libcamera-utils.cpp spa: libcamera: fix RGB mappings 2024-05-06 09:53:50 +02:00
libcamera.c spa: remove unnecessary indirection for some spa_log_topics 2023-10-06 13:08:24 +00:00
libcamera.h spa: remove unnecessary indirection for some spa_log_topics 2023-10-06 13:08:24 +00:00
meson.build spa: libcamera: add libcamera version check for properties::SystemDevices 2023-07-19 09:21:03 +00:00