libcamera: pipeline: uvcvideo: Reject sensor configuration

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 <barnabas.pocze@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
Barnabás Pőcze
2025-11-11 10:16:54 +01:00
parent ebda108111
commit eca695f291

View File

@@ -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;