summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/pipeline/simple/simple.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp
index 5221ff33..b1814b08 100644
--- a/src/libcamera/pipeline/simple/simple.cpp
+++ b/src/libcamera/pipeline/simple/simple.cpp
@@ -251,6 +251,14 @@ int SimpleCameraData::init()
int ret;
/*
+ * Setup links first as some subdev drivers take active links into
+ * account to propagate TRY formats. Such is life :-(
+ */
+ ret = setupLinks();
+ if (ret < 0)
+ return ret;
+
+ /*
* Enumerate the possible pipeline configurations. For each media bus
* format supported by the sensor, propagate the formats through the
* pipeline, and enumerate the corresponding possible V4L2 pixel
@@ -259,14 +267,6 @@ int SimpleCameraData::init()
for (unsigned int code : sensor_->mbusCodes()) {
V4L2SubdeviceFormat format{ code, sensor_->resolution() };
- /*
- * Setup links first as some subdev drivers take active links
- * into account to propagate TRY formats. Such is life :-(
- */
- ret = setupLinks();
- if (ret < 0)
- return ret;
-
ret = setupFormats(&format, V4L2Subdevice::TryFormat);
if (ret < 0) {
LOG(SimplePipeline, Error)