libcamera/src/apps
Milan Zamazal 663ab2ee8e apps: cam: Skip non-display GPUs
Device::openCard() in the cam DRM helpers looks for a /dev/dri/card*
device that can be opened and that doesn't fail when asked about
DRM_CAP_DUMB_BUFFER capability (regardless whether the capability is
supported by the device).

There can be matching devices that are not display devices.  This can
lead to selection of such a device and inability to use KMS output with
the `cam' application.  The ultimate goal is to display something on the
device and later the KMS sink will fail if there is no connector
attached to the device (although it can actually fail earlier, when
trying to set DRM_CLIENT_CAP_ATOMIC capability if this is not
supported).

Let's avoid selecting devices without connectors, CRTCs or encoders.
The added check makes the original check for DRM_CAP_DUMB_BUFFER API
most likely unnecessary, let's remove it.

Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2025-05-30 12:26:53 +03:00
..
cam apps: cam: Skip non-display GPUs 2025-05-30 12:26:53 +03:00
common apps: cam: Try raw role if default viewfinder role fails 2025-04-29 00:57:54 +09:00
ipa-verify libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
lc-compliance lc-compliance: Move camera setup to CameraHolder class 2025-05-13 20:17:19 +02:00
qcam apps: qcam: Push the viewfinder role to vector 2025-05-08 10:51:11 +02:00
meson.build apps: Add ipa-verify application 2023-07-05 15:38:59 +03:00