summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>2021-03-09 07:38:27 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-03-11 02:13:27 +0200
commit3b338aa5e759609210079b8883e5a289fb0c1bc0 (patch)
treea26cee37d022ae5e7d9219fd3a38e13be0d13972 /include
parentd3cf0fed3e3139a8ae4b93fe661d4603e1b1115f (diff)
libcamera: media_device: Add hwRevision method
Add a method 'hwRevision' to return the info.hw_version reported by the driver. Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/media_device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libcamera/internal/media_device.h b/include/libcamera/internal/media_device.h
index d0459cde..c3292508 100644
--- a/include/libcamera/internal/media_device.h
+++ b/include/libcamera/internal/media_device.h
@@ -41,6 +41,7 @@ public:
const std::string deviceNode() const { return deviceNode_; }
const std::string model() const { return model_; }
unsigned int version() const { return version_; }
+ unsigned int hwRevision() const { return hwRevision_; }
const std::vector<MediaEntity *> &entities() const { return entities_; }
MediaEntity *getEntityByName(const std::string &name) const;
@@ -79,6 +80,7 @@ private:
std::string deviceNode_;
std::string model_;
unsigned int version_;
+ unsigned int hwRevision_;
int fd_;
bool valid_;