@@ -12,6 +12,8 @@
#include <libcamera/base/class.h>
#include <libcamera/base/log.h>
+#include <libcamera/controls.h>
+
namespace libcamera {
class MediaEntity;
@@ -28,6 +30,8 @@ public:
const std::string &model() const { return model_; }
+ const ControlInfoMap &controls() const;
+
protected:
std::string logPrefix() const override;
@@ -139,4 +139,15 @@ std::string CameraLens::logPrefix() const
return "'" + entity_->name() + "'";
}
+/**
+ * \fn CameraLens::controls()
+ * \brief Retrieve the V4L2 controls of the lens' subdev
+ *
+ * \return A map of the V4L2 controls supported by the lens' driver
+ */
+const ControlInfoMap &CameraLens::controls() const
+{
+ return subdev_->controls();
+}
+
} /* namespace libcamera */