libcamera: pipeline: simple: Try next mbus code if setupFormats() fails
Now SimpleCameraData::setupFormats() can fail if the camera sensor supports media bus code which some entities down the pipeline don't. When this happens continue with the next media bus code instead of aborting the enumeration of the possible pipeline configurations. Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
68e65da0cc
commit
565f95d64f
@@ -269,10 +269,11 @@ int SimpleCameraData::init()
|
||||
|
||||
ret = setupFormats(&format, V4L2Subdevice::TryFormat);
|
||||
if (ret < 0) {
|
||||
LOG(SimplePipeline, Error)
|
||||
<< "Failed to setup pipeline for media bus code "
|
||||
<< utils::hex(code, 4);
|
||||
return ret;
|
||||
LOG(SimplePipeline, Debug)
|
||||
<< "Media bus code " << utils::hex(code, 4)
|
||||
<< " not supported for this pipeline";
|
||||
/* Try next mbus_code supported by the sensor */
|
||||
continue;
|
||||
}
|
||||
|
||||
V4L2VideoDevice::Formats videoFormats =
|
||||
|
||||
Reference in New Issue
Block a user