From patchwork Thu Jan 26 13:50:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 9539287 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C668760429 for ; Thu, 26 Jan 2017 13:51:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABF2327F17 for ; Thu, 26 Jan 2017 13:51:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D72B280F4; Thu, 26 Jan 2017 13:51:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9DA1027F17 for ; Thu, 26 Jan 2017 13:50:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A64FC6EB9C; Thu, 26 Jan 2017 13:50:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.w1.samsung.com (mailout3.w1.samsung.com [210.118.77.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3DF2F6EB9C for ; Thu, 26 Jan 2017 13:50:57 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKE00MC33SVBO40@mailout3.w1.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 26 Jan 2017 13:50:55 +0000 (GMT) Received: from eusmges1.samsung.com (unknown [203.254.199.239]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170126135054eucas1p1454d356d7fd33fd2005d97fe1b1773d6~dVpX4m3Np0788007880eucas1p1P; Thu, 26 Jan 2017 13:50:54 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1.samsung.com (EUCPMTA) with SMTP id EE.28.16908.0CEF9885; Thu, 26 Jan 2017 13:50:56 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170126135053eucas1p2b1f31992f4c68a3946aa425f00271e5d~dVpXI82PA0643106431eucas1p2Y; Thu, 26 Jan 2017 13:50:53 +0000 (GMT) X-AuditID: cbfec7ef-f79d26d00000420c-a6-5889fec0f1bc Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 83.52.10233.ABEF9885; Thu, 26 Jan 2017 13:50:50 +0000 (GMT) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKE009603SSHI60@eusync4.samsung.com>; Thu, 26 Jan 2017 13:50:53 +0000 (GMT) From: Andrzej Hajda To: Archit Taneja , dri-devel@lists.freedesktop.org Subject: [PATCH v2 19.1/25] drm/bridge/mhl: add MHL3 infoframe related definitions Date: Thu, 26 Jan 2017 14:50:48 +0100 Message-id: <1485438649-12396-1-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFIsWRmVeSWpSXmKPExsWy7djP87oH/nVGGMxsVLa4te4cq0VTx1tW i40z1rNaXPn6ns1i0v0JLBZrj9xld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iOTxLeF8xlB qtgENCX+br7JBmKLCHhLzFndxwhSxCywnlFi6uO/7CAJYYEQiSPTXjCD2CwCqhJPtt5gArF5 BZwlnh+5DbVOTuLmuU6wGk4BJ4kL3+eBxYUEHCXW/p3IPoGRdwEjwypGkdTS4tz03GIjveLE 3OLSvHS95PzcTYzAkN127OeWHYxd74IPMQpwMCrx8GZs64gQYk0sK67MPcQowcGsJML7+Xdn hBBvSmJlVWpRfnxRaU5q8SFGU6CjJjJLiSbnA+MpryTe0MTQ3NLQyNjCwtzISEmcd+qHK+FC AumJJanZqakFqUUwfUwcnFINjMfUb0ue6H/veF4ghn9u0X2lz5VXGPWfMewvkM/w8Us1mmx/ s+vZTdVbjz9uaI1Yu+XJ3Zal/xrXnBc+eXqSvxJH+uSAryW301VL5qtOevNwwpVvC/QX7b27 dkOsWF8RQ75N8dGHfw7WqG9ZPvXfhl/Hfu9Ne5LrUeb1s+CWiHntQd6+hGNbFAWUWIozEg21 mIuKEwGeb9YnbwIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170126135053eucas1p2b1f31992f4c68a3946aa425f00271e5d X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRvsgrw=?= =?UTF-8?B?7ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRtTYW1z?= =?UTF-8?B?dW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170126135053eucas1p2b1f31992f4c68a3946aa425f00271e5d X-RootMTR: 20170126135053eucas1p2b1f31992f4c68a3946aa425f00271e5d References: Cc: Marek Szyprowski , Bartlomiej Zolnierkiewicz X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- include/drm/bridge/mhl.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/include/drm/bridge/mhl.h b/include/drm/bridge/mhl.h index 71d922f..8dfa2cd 100644 --- a/include/drm/bridge/mhl.h +++ b/include/drm/bridge/mhl.h @@ -339,4 +339,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__ */