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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user