summaryrefslogtreecommitdiff
path: root/include/linux/hdmi.h
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-08-06 20:32:15 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-08 14:04:45 +0200
commit61177b0e12ba162d5de206914e8703d8eb90ad19 (patch)
treea865a3b21c48d68ea38274158cef6466fb57ef96 /include/linux/hdmi.h
parent72b098964d3c3fb030dcac2d4c869c9851a0d17a (diff)
video/hdmi: Add a macro to return the size of a full infoframe
Cc: Thierry Reding <thierry.reding@avionic-design.de> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Acked-by: Dave Airlie <airlied@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/hdmi.h')
-rw-r--r--include/linux/hdmi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/hdmi.h b/include/linux/hdmi.h
index 0f3f82eadef7..bc6743e76e37 100644
--- a/include/linux/hdmi.h
+++ b/include/linux/hdmi.h
@@ -23,6 +23,9 @@ enum hdmi_infoframe_type {
#define HDMI_SPD_INFOFRAME_SIZE 25
#define HDMI_AUDIO_INFOFRAME_SIZE 10
+#define HDMI_INFOFRAME_SIZE(type) \
+ (HDMI_INFOFRAME_HEADER_SIZE + HDMI_ ## type ## _INFOFRAME_SIZE)
+
struct hdmi_any_infoframe {
enum hdmi_infoframe_type type;
unsigned char version;