diff options
author | 2016-03-13 15:16:26 +0700 | |
---|---|---|
committer | 2016-03-13 15:16:26 +0700 | |
commit | df91a2100c05cec9323a222b97be918ccf53e378 (patch) | |
tree | 5902b152718a4a716848548909a1a049748b6950 /include/drm | |
parent | Merge remote-tracking branch 'asoc/topic/dapm' into asoc-next (diff) | |
parent | ASoC: hdac_hdmi: Add broxton device ID (diff) | |
download | linux-df91a2100c05cec9323a222b97be918ccf53e378.tar.gz linux-df91a2100c05cec9323a222b97be918ccf53e378.tar.bz2 linux-df91a2100c05cec9323a222b97be918ccf53e378.zip |
Merge remote-tracking branch 'asoc/topic/intel' into asoc-next
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_edid.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h index 2af97691e878..dec6221e8198 100644 --- a/include/drm/drm_edid.h +++ b/include/drm/drm_edid.h @@ -403,6 +403,18 @@ static inline int drm_eld_size(const uint8_t *eld) return DRM_ELD_HEADER_BLOCK_SIZE + eld[DRM_ELD_BASELINE_ELD_LEN] * 4; } +/** + * drm_eld_get_conn_type - Get device type hdmi/dp connected + * @eld: pointer to an ELD memory structure + * + * The caller need to use %DRM_ELD_CONN_TYPE_HDMI or %DRM_ELD_CONN_TYPE_DP to + * identify the display type connected. + */ +static inline u8 drm_eld_get_conn_type(const uint8_t *eld) +{ + return eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_CONN_TYPE_MASK; +} + struct edid *drm_do_get_edid(struct drm_connector *connector, int (*get_edid_block)(void *data, u8 *buf, unsigned int block, size_t len), |