diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-09-28 02:18:37 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-09-28 16:38:58 +0300 |
commit | aafad4d0caf04de1a94759e0957e426407be447a (patch) | |
tree | e0712d95f8ccf7cfad530abafc1c5a32e963b4c4 /src/android/camera_capabilities.cpp | |
parent | 2f1efe50a938b83a6b4b236406b74c20ead29beb (diff) |
cam: drm: Skip DRM devices not capable of mode setting
The DRM helper picks the first DRM card that it can open. On platforms
that have a standalone GPU, this risks selecting a device corresponding
to the GPU instead of the display controller. Fix this by skipping
devices that don't support the KMS mode setting API. Some legacy display
controllers would be skipped as well, but libcamera doesn't run on those
systems anyway.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_capabilities.cpp')
0 files changed, 0 insertions, 0 deletions