projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm
[firefly-linux-kernel-4.4.55.git]
/
include
/
media
/
media-device.h
diff --git
a/include/media/media-device.h
b/include/media/media-device.h
index eaade9815bb63fa885ce25b55b5856ee017a1550..12155a9596c49c89350f1cdadbe6f1f301e27d10 100644
(file)
--- a/
include/media/media-device.h
+++ b/
include/media/media-device.h
@@
-45,6
+45,7
@@
struct device;
* @entities: List of registered entities
* @lock: Entities list lock
* @graph_mutex: Entities graph operation lock
* @entities: List of registered entities
* @lock: Entities list lock
* @graph_mutex: Entities graph operation lock
+ * @link_notify: Link state change notification callback
*
* This structure represents an abstract high-level media device. It allows easy
* access to entities and provides basic media device-level support. The
*
* This structure represents an abstract high-level media device. It allows easy
* access to entities and provides basic media device-level support. The
@@
-75,10
+76,14
@@
struct media_device {
/* Serializes graph operations. */
struct mutex graph_mutex;
/* Serializes graph operations. */
struct mutex graph_mutex;
- int (*link_notify)(struct media_
pad *source
,
-
struct media_pad *sink, u32 flags
);
+ int (*link_notify)(struct media_
link *link, u32 flags
,
+
unsigned int notification
);
};
};
+/* Supported link_notify @notification values. */
+#define MEDIA_DEV_NOTIFY_PRE_LINK_CH 0
+#define MEDIA_DEV_NOTIFY_POST_LINK_CH 1
+
/* media_devnode to media_device */
#define to_media_device(node) container_of(node, struct media_device, devnode)
/* media_devnode to media_device */
#define to_media_device(node) container_of(node, struct media_device, devnode)