summaryrefslogtreecommitdiffstats
path: root/include/media/media-device.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-08-23 09:40:26 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-11 12:18:54 -0200
commit2521fdac28d0ceea659be1620fef96b1cbff09b6 (patch)
treee507ecce63e200abfbb9853c74f9ea182b73d7d2 /include/media/media-device.h
parent9155d859b6bec29cdbbd80a509be35de55115f00 (diff)
downloadblackbird-op-linux-2521fdac28d0ceea659be1620fef96b1cbff09b6.tar.gz
blackbird-op-linux-2521fdac28d0ceea659be1620fef96b1cbff09b6.zip
[media] media_device: add a topology version field
Every time a graph object is added or removed, the version of the topology changes. That's a requirement for the new MEDIA_IOC_G_TOPOLOGY, in order to allow userspace to know that the topology has changed after a previous call to it. Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media/media-device.h')
-rw-r--r--include/media/media-device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/media-device.h b/include/media/media-device.h
index 0d1b9c687454..1b12774a9ab4 100644
--- a/include/media/media-device.h
+++ b/include/media/media-device.h
@@ -41,6 +41,8 @@ struct device;
* @bus_info: Unique and stable device location identifier
* @hw_revision: Hardware device revision
* @driver_version: Device driver version
+ * @topology_version: Monotonic counter for storing the version of the graph
+ * topology. Should be incremented each time the topology changes.
* @entity_id: Unique ID used on the last entity registered
* @pad_id: Unique ID used on the last pad registered
* @link_id: Unique ID used on the last link registered
@@ -74,6 +76,8 @@ struct media_device {
u32 hw_revision;
u32 driver_version;
+ u32 topology_version;
+
u32 entity_id;
u32 pad_id;
u32 link_id;
OpenPOWER on IntegriCloud