libcamera: camera_lens: add CameraLens as a member of CameraSensor

Add CameraLens as a member of CameraSensor. The patch does not implement how
to link the lens to the specific sensor yet. Only to provide an interface for
pipeline handler's usage.

Signed-off-by: Han-Lin Chen <hanlinchen@chromium.org>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Han-Lin Chen 2021-12-03 17:44:25 +08:00 committed by Kieran Bingham
parent 6e80c1bcf4
commit ad2bcbe5b5
2 changed files with 14 additions and 0 deletions

View file

@ -20,6 +20,7 @@
#include <libcamera/base/utils.h>
#include "libcamera/internal/bayer_format.h"
#include "libcamera/internal/camera_lens.h"
#include "libcamera/internal/camera_sensor_properties.h"
#include "libcamera/internal/formats.h"
#include "libcamera/internal/sysfs.h"
@ -787,6 +788,14 @@ void CameraSensor::updateControlInfo()
subdev_->updateControlInfo();
}
/**
* \fn CameraSensor::focusLens_()
* \brief Retrieve the focus lens controller
*
* \return The focus lens controller. nullptr if no focus lens controller is
* connected to the sensor
*/
std::string CameraSensor::logPrefix() const
{
return "'" + entity_->name() + "'";