summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2017-02-01 08:47:46 +0100
committerArchit Taneja <architt@codeaurora.org>2017-02-02 15:15:29 +0530
commitbe1cd6fe205806fbbcf59061d7b64759b160ca31 (patch)
treea53dc4bdeba8330d450d58fc1db13b52b7c9f576
parent003f9929f85270a74a34990a60263fa847408fd0 (diff)
downloadop-kernel-dev-be1cd6fe205806fbbcf59061d7b64759b160ca31.zip
op-kernel-dev-be1cd6fe205806fbbcf59061d7b64759b160ca31.tar.gz
drm/bridge/mhl: add MHL3 infoframe related definitions
MHL3 protocol uses vendor specific infoframes to transmit additional information to the sink. This patch adds definitions of structures and constants used to create such frames. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Archit Taneja <architt@codeaurora.org> Link: http://patchwork.freedesktop.org/patch/msgid/1485935272-17337-20-git-send-email-a.hajda@samsung.com
-rw-r--r--include/drm/bridge/mhl.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/drm/bridge/mhl.h b/include/drm/bridge/mhl.h
index e8d194d..fbdfc8d 100644
--- a/include/drm/bridge/mhl.h
+++ b/include/drm/bridge/mhl.h
@@ -341,4 +341,36 @@ struct mhl_burst_audio_descr {
u8 short_desc[9];
} __packed;
+/*
+ * MHL3 infoframe related definitions
+ */
+
+#define MHL3_IEEE_OUI 0x7ca61d
+#define MHL3_INFOFRAME_SIZE 15
+
+enum mhl3_video_format {
+ MHL3_VIDEO_FORMAT_NONE,
+ MHL3_VIDEO_FORMAT_3D,
+ MHL3_VIDEO_FORMAT_MULTI_VIEW,
+ MHL3_VIDEO_FORMAT_DUAL_3D
+};
+
+enum mhl3_3d_format_type {
+ MHL3_3D_FORMAT_TYPE_FS, /* frame sequential */
+ MHL3_3D_FORMAT_TYPE_TB, /* top-bottom */
+ MHL3_3D_FORMAT_TYPE_LR, /* left-right */
+ MHL3_3D_FORMAT_TYPE_FS_TB, /* frame sequential, top-bottom */
+ MHL3_3D_FORMAT_TYPE_FS_LR, /* frame sequential, left-right */
+ MHL3_3D_FORMAT_TYPE_TB_LR /* top-bottom, left-right */
+};
+
+struct mhl3_infoframe {
+ unsigned char version;
+ enum mhl3_video_format video_format;
+ enum mhl3_3d_format_type format_type;
+ bool sep_audio;
+ int hev_format;
+ int av_delay;
+};
+
#endif /* __MHL_H__ */
OpenPOWER on IntegriCloud