@@ -130,6 +130,12 @@ int CameraSensor::init()
* \return The sensor media entity
*/
+/**
+ * \fn CameraSensor::dev()
+ * \brief Retrieve the sensor V4L2 subdevice
+ * \return The sensor V4L2 subdevice
+ */
+
/**
* \fn CameraSensor::mbusCodes()
* \brief Retrieve the media bus codes supported by the camera sensor
@@ -33,6 +33,7 @@ public:
int init();
const MediaEntity *entity() const { return entity_; }
+ V4L2Subdevice *dev() const { return subdev_; }
const std::vector<unsigned int> &mbusCodes() const { return mbusCodes_; }
const std::vector<Size> &sizes() const { return sizes_; }
const Size &resolution() const;
Add dev() operation to the CameraSensor class to access the V4L2Subdevice backing the camera sensor. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> --- src/libcamera/camera_sensor.cpp | 6 ++++++ src/libcamera/include/camera_sensor.h | 1 + 2 files changed, 7 insertions(+)