Commit 2c676f37 authored by Martin Bugge's avatar Martin Bugge Committed by Mauro Carvalho Chehab

[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: default avatarMartin Bugge <marbugge@cisco.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 05c80d75
This diff is collapsed.
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#define __LINUX_HDMI_H_ #define __LINUX_HDMI_H_
#include <linux/types.h> #include <linux/types.h>
#include <linux/device.h>
enum hdmi_infoframe_type { enum hdmi_infoframe_type {
HDMI_INFOFRAME_TYPE_VENDOR = 0x81, HDMI_INFOFRAME_TYPE_VENDOR = 0x81,
...@@ -327,5 +328,8 @@ union hdmi_infoframe { ...@@ -327,5 +328,8 @@ union hdmi_infoframe {
ssize_t ssize_t
hdmi_infoframe_pack(union hdmi_infoframe *frame, void *buffer, size_t size); hdmi_infoframe_pack(union hdmi_infoframe *frame, void *buffer, size_t size);
int hdmi_infoframe_unpack(union hdmi_infoframe *frame, void *buffer);
void hdmi_infoframe_log(const char *level, struct device *dev,
union hdmi_infoframe *frame);
#endif /* _DRM_HDMI_H */ #endif /* _DRM_HDMI_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment