From: Ville Syrjälä <ville.syrj...@linux.intel.com>

Add defines for the secondary data packet (SDP) types from the spec.
These are the DP specific ones, and in addition HDMI infoframe types
(see enum hdmi_infoframe_type) are also valid SDP types.

Cc: dri-devel at lists.freedesktop.org
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 include/drm/drm_dp_helper.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h
index 5a848e734422..9ae1aa5f6713 100644
--- a/include/drm/drm_dp_helper.h
+++ b/include/drm/drm_dp_helper.h
@@ -630,6 +630,14 @@ void drm_dp_link_train_channel_eq_delay(const u8 
dpcd[DP_RECEIVER_CAP_SIZE]);
 u8 drm_dp_link_rate_to_bw_code(int link_rate);
 int drm_dp_bw_code_to_link_rate(u8 link_bw);

+#define DP_SDP_AUDIO_TIMESTAMP         0x01
+#define DP_SDP_AUDIO_STREAM            0x02
+#define DP_SDP_EXTENSION               0x04
+#define DP_SDP_AUDIO_COPYMANAGEMENT    0x05
+#define DP_SDP_ISRC                    0x06
+#define DP_SDP_VSC                     0x07
+#define DP_SDP_CAMERA_GENERIC(i)       (0x08 + (i)) /* 0x08-0x0f */
+
 struct edp_sdp_header {
        u8 HB0; /* Secondary Data Packet ID */
        u8 HB1; /* Secondary Data Packet Type */
-- 
2.7.4

Reply via email to