summaryrefslogtreecommitdiff
path: root/include/libcamera/internal/camera_sensor.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-12-22 15:40:08 +0100
committerJacopo Mondi <jacopo@jmondi.org>2021-01-18 10:39:13 +0100
commit8502d4c52d191a03e866411044e34b1f02183b99 (patch)
tree6b50b3cdd32f6a57fba9d2baa655ecb1e098b2e3 /include/libcamera/internal/camera_sensor.h
parent1b4997ef08a04bcad205d6708cdb25a88740301c (diff)
libcamera: camera_sensor: Validate driver support
The CameraSensor class requires the sensor driver to report information through V4L2 controls and through the V4L2 selection API, and uses that information to register Camera properties and to construct CameraSensorInfo class instances to provide them to the IPA. Currently, validation of the kernel support happens each time a feature is requested, with slighly similar debug/error messages output to the user in case a feature is not supported. Rationalize this by validating the sensor driver requirements in a single function Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include/libcamera/internal/camera_sensor.h')
-rw-r--r--include/libcamera/internal/camera_sensor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/internal/camera_sensor.h b/include/libcamera/internal/camera_sensor.h
index f80d8361..aee10aa6 100644
--- a/include/libcamera/internal/camera_sensor.h
+++ b/include/libcamera/internal/camera_sensor.h
@@ -69,6 +69,7 @@ protected:
private:
int generateId();
+ int validateSensorDriver();
int initProperties();
const MediaEntity *entity_;