@@ -403,14 +403,8 @@ void RkISP1CameraData::setSensorControls([[maybe_unused]] unsigned int frame,
delayedCtrls_->push(sensorControls);
CameraLens *lens = sensor_->focusLens();
- if (!lens)
- return;
-
- if (lensControls.contains(V4L2_CID_FOCUS_ABSOLUTE)) {
- const ControlValue &focusValue = lensControls.get(V4L2_CID_FOCUS_ABSOLUTE);
-
- lens->setFocusPosition(focusValue.get<int32_t>());
- }
+ if (lens)
+ lens->setSubdevControls(lensControls);
}
void RkISP1CameraData::metadataReady(unsigned int frame, const ControlList &metadata)
Instead of parsing the values in the v4l2 controls from the IPA and passing them to CameraLens (where they are then converted back to v4l2 controls), the IPA v4l2 controls are reused directly. Signed-off-by: Matthias Fend <matthias.fend@emfend.at> --- src/libcamera/pipeline/rkisp1/rkisp1.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)