libcamera: camera_lens: Add function to fetch subdev controls

Add a function to the CameraLens class to fetch the V4L2 controls
for its V4L2 subdev

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Daniel Scally
2022-03-03 23:49:52 +00:00
committed by Kieran Bingham
parent 9c003a5321
commit 931556c37c
2 changed files with 15 additions and 0 deletions
+4
View File
@@ -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;