@@ -34,6 +34,7 @@ public:
const ControlInfoMap &controls() const;
ControlList getControls(const std::vector<uint32_t> &ids);
+ ControlList getVolatileControls();
protected:
std::string logPrefix() const override;
@@ -165,4 +165,13 @@ ControlList CameraLens::getControls(const std::vector<uint32_t> &ids)
return subdev_->getControls(ids);
}
+ControlList CameraLens::getVolatileControls()
+{
+ std::vector<uint32_t> ids;
+
+ ids = subdev_->getVolatileControlIds();
+
+ return subdev_->getControls(ids);
+}
+
} /* namespace libcamera */
This method reads all v4l2 controls marked as volatile from the underlying v4l2 subdevice. Signed-off-by: Matthias Fend <matthias.fend@emfend.at> --- include/libcamera/internal/camera_lens.h | 1 + src/libcamera/camera_lens.cpp | 9 +++++++++ 2 files changed, 10 insertions(+)