Message ID | 20220426055830.8999-4-hpa@redhat.com |
---|---|
State | New |
Headers | show |
Series |
|
Related | show |
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp index fd989e61..f5cd2173 100644 --- a/src/libcamera/pipeline/ipu3/ipu3.cpp +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp @@ -665,8 +665,10 @@ int PipelineHandlerIPU3::configure(Camera *camera, CameraConfiguration *c) configInfo.sensorControls = data->cio2_.sensor()->controls(); CameraLens *lens = data->cio2_.sensor()->focusLens(); - if (lens) + if (lens) { configInfo.lensControls = lens->controls(); + sensorInfo.maxVcmSteps = lens->getMaxFocusStep(); + } configInfo.sensorInfo = sensorInfo; configInfo.bdsOutputSize = config->imguConfig().bds;
The VCM step value is stored in ConfigInfo if lens exists. Signed-off-by: Kate Hsuan<hpa@redhat.com> --- src/libcamera/pipeline/ipu3/ipu3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)