From eca695f2917f1bfda8dc61d0fa98e287cc2fd1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Tue, 11 Nov 2025 10:16:54 +0100 Subject: [PATCH] libcamera: pipeline: uvcvideo: Reject sensor configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The UVC pipeline handler cannot set the sensor configuration so if the desired `CameraConfiguration` specifies one, then reject it. Signed-off-by: Barnabás Pőcze Reviewed-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp index 4b5816df..48d6b39d 100644 --- a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp +++ b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp @@ -143,6 +143,9 @@ CameraConfiguration::Status UVCCameraConfiguration::validate() if (config_.empty()) return Invalid; + if (sensorConfig) + return Invalid; + if (orientation != Orientation::Rotate0) { orientation = Orientation::Rotate0; status = Adjusted;