Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist parse_hdmi_vsdb: read the HDMI ph...



details:   https://anonhg.NetBSD.org/src/rev/07c9cab9580a
branches:  trunk
changeset: 811779:07c9cab9580a
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Nov 14 23:15:44 2015 +0000

description:
parse_hdmi_vsdb: read the HDMI physical address from the HDMI VSDB and store it on the connector

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_edid.c         |  3 +++
 sys/external/bsd/drm2/dist/include/drm/drm_crtc.h |  2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)

diffs (32 lines):

diff -r 4cbbd2f9f9b6 -r 07c9cab9580a sys/external/bsd/drm2/dist/drm/drm_edid.c
--- a/sys/external/bsd/drm2/dist/drm/drm_edid.c Sat Nov 14 23:04:30 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_edid.c Sat Nov 14 23:15:44 2015 +0000
@@ -2984,6 +2984,9 @@
 {
        u8 len = cea_db_payload_len(db);
 
+       if (len >= 5) {
+               connector->physical_address = (db[4] << 8) | db[5];
+       }
        if (len >= 6) {
                connector->eld[5] |= (db[6] >> 7) << 1;  /* Supports_AI */
                connector->dvi_dual = db[6] & 1;
diff -r 4cbbd2f9f9b6 -r 07c9cab9580a sys/external/bsd/drm2/dist/include/drm/drm_crtc.h
--- a/sys/external/bsd/drm2/dist/include/drm/drm_crtc.h Sat Nov 14 23:04:30 2015 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drm_crtc.h Sat Nov 14 23:15:44 2015 +0000
@@ -464,6 +464,7 @@
  * @force: a %DRM_FORCE_<foo> state for forced mode sets
  * @encoder_ids: valid encoders for this connector
  * @encoder: encoder driving this connector, if any
+ * @physical_address: HDMI physical address
  * @eld: EDID-like data, if present
  * @dvi_dual: dual link DVI, if found
  * @max_tmds_clock: max clock rate, if found
@@ -516,6 +517,7 @@
        struct drm_encoder *encoder; /* currently active encoder */
 
        /* EDID bits */
+       uint16_t physical_address;
        uint8_t eld[MAX_ELD_BYTES];
        bool dvi_dual;
        int max_tmds_clock;     /* in MHz */



Home | Main Index | Thread Index | Old Index