aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMartin Bugge <marbugge@cisco.com>2014-12-19 07:14:21 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-01-27 07:18:50 -0500
commit2c676f378edb16cb68f7815581c8119fc43a4b85 (patch)
tree310e66ff7eb4de75e8b2bdbafd513e004b29c11a /include/linux
parent05c80d75f10ad7d3f95444b65788d6a0bbb4380d (diff)
[media] hdmi: added unpack and logging functions for InfoFrames
When receiving video it is very useful to be able to unpack the InfoFrames. Logging is useful as well, both for transmitters and receivers. Especially when implementing the VIDIOC_LOG_STATUS ioctl (supported by many V4L2 drivers) for a receiver it is important to be able to easily log what the InfoFrame contains. This greatly simplifies debugging. Signed-off-by: Martin Bugge <marbugge@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/hdmi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/hdmi.h b/include/linux/hdmi.h
index 5afc0bff2bbe..2ff34315a1bb 100644
--- a/include/linux/hdmi.h
+++ b/include/linux/hdmi.h
@@ -25,6 +25,7 @@
25#define __LINUX_HDMI_H_ 25#define __LINUX_HDMI_H_
26 26
27#include <linux/types.h> 27#include <linux/types.h>
28#include <linux/device.h>
28 29
29enum hdmi_infoframe_type { 30enum hdmi_infoframe_type {
30 HDMI_INFOFRAME_TYPE_VENDOR = 0x81, 31 HDMI_INFOFRAME_TYPE_VENDOR = 0x81,
@@ -327,5 +328,8 @@ union hdmi_infoframe {
327 328
328ssize_t 329ssize_t
329hdmi_infoframe_pack(union hdmi_infoframe *frame, void *buffer, size_t size); 330hdmi_infoframe_pack(union hdmi_infoframe *frame, void *buffer, size_t size);
331int hdmi_infoframe_unpack(union hdmi_infoframe *frame, void *buffer);
332void hdmi_infoframe_log(const char *level, struct device *dev,
333 union hdmi_infoframe *frame);
330 334
331#endif /* _DRM_HDMI_H */ 335#endif /* _DRM_HDMI_H */