diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-05-16 08:11:47 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-05-16 08:11:47 +0200 |
commit | 0853255023287413e34a7973c3c6d308ab1d29cf (patch) | |
tree | c2edd9f5eb2febea5c5f2ab2573393a93bee9826 /drmtools.c | |
parent | 2c20fae8a1fd28854aeeee8e070f70f763bad848 (diff) | |
download | fbida-0853255023287413e34a7973c3c6d308ab1d29cf.tar.gz |
sync connector names
Diffstat (limited to 'drmtools.c')
-rw-r--r-- | drmtools.c | 39 |
1 files changed, 22 insertions, 17 deletions
@@ -38,23 +38,28 @@ struct drmfb { /* ------------------------------------------------------------------ */ static const char *conn_type[] = { - [ DRM_MODE_CONNECTOR_Unknown ] = "unknown", - [ DRM_MODE_CONNECTOR_VGA ] = "vga", - [ DRM_MODE_CONNECTOR_DVII ] = "dvi-i", - [ DRM_MODE_CONNECTOR_DVID ] = "dvi-d", - [ DRM_MODE_CONNECTOR_DVIA ] = "dvi-a", - [ DRM_MODE_CONNECTOR_Composite ] = "composite", - [ DRM_MODE_CONNECTOR_SVIDEO ] = "svideo", - [ DRM_MODE_CONNECTOR_LVDS ] = "lvds", - [ DRM_MODE_CONNECTOR_Component ] = "component", - [ DRM_MODE_CONNECTOR_9PinDIN ] = "9pin-din", - [ DRM_MODE_CONNECTOR_DisplayPort ] = "dp", - [ DRM_MODE_CONNECTOR_HDMIA ] = "hdmi-a", - [ DRM_MODE_CONNECTOR_HDMIB ] = "hdmi-b", - [ DRM_MODE_CONNECTOR_TV ] = "tv", - [ DRM_MODE_CONNECTOR_eDP ] = "edp", - [ DRM_MODE_CONNECTOR_VIRTUAL ] = "virtual", - [ DRM_MODE_CONNECTOR_DSI ] = "dsi", + /* + * Names are taken from the xorg modesetting driver, so the output + * names are matching the ones ypu can see with xrandr. + */ + [DRM_MODE_CONNECTOR_Unknown] = "None", + [DRM_MODE_CONNECTOR_VGA] = "VGA", + [DRM_MODE_CONNECTOR_DVII] = "DVI-I", + [DRM_MODE_CONNECTOR_DVID] = "DVI-D", + [DRM_MODE_CONNECTOR_DVIA] = "DVI-A", + [DRM_MODE_CONNECTOR_Composite] = "Composite", + [DRM_MODE_CONNECTOR_SVIDEO] = "SVIDEO", + [DRM_MODE_CONNECTOR_LVDS] = "LVDS", + [DRM_MODE_CONNECTOR_Component] = "Component", + [DRM_MODE_CONNECTOR_9PinDIN] = "DIN", + [DRM_MODE_CONNECTOR_DisplayPort] = "DP", + [DRM_MODE_CONNECTOR_HDMIA] = "HDMI", + [DRM_MODE_CONNECTOR_HDMIB] = "HDMI-B", + [DRM_MODE_CONNECTOR_TV] = "TV", + [DRM_MODE_CONNECTOR_eDP] = "eDP", + [DRM_MODE_CONNECTOR_VIRTUAL] = "Virtual", + [DRM_MODE_CONNECTOR_DSI] = "DSI", + [DRM_MODE_CONNECTOR_DPI] = "DPI", }; static void drm_conn_name(drmModeConnector *conn, char *dest, int dlen) |