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:
committed by
Kieran Bingham
parent
9c003a5321
commit
931556c37c
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user