diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-26 16:13:23 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-26 16:14:24 +0000 |
commit | 1085e6c93288de2275791ce9c585142870dc0877 (patch) | |
tree | 6732905e12b19dbc8d225b36715a125ab55d26b0 | |
parent | 80d1dee70ba3bdf38e0dd68a39380f4f3d9f22b5 (diff) |
sna: Update connector-type-to-string mapping
Add in a couple of newcomers to the connector type and make it easier to
track updates in future.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_display.c | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 7a92fb88..53324c6c 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -2577,22 +2577,24 @@ static const int subpixel_conv_table[] = { SubPixelNone }; -static const char *output_names[] = { - "None", - "VGA", - "DVI", - "DVI", - "DVI", - "Composite", - "TV", - "LVDS", - "CTV", - "DIN", - "DP", - "HDMI", - "HDMI", - "TV", - "eDP", +static const char * const output_names[] = { + /* DRM_MODE_CONNECTOR_Unknown */ "None", + /* DRM_MODE_CONNECTOR_VGA */ "VGA", + /* DRM_MODE_CONNECTOR_DVII */ "DVI", + /* DRM_MODE_CONNECTOR_DVID */ "DVI", + /* DRM_MODE_CONNECTOR_DVIA */ "DVI", + /* DRM_MODE_CONNECTOR_Composite */ "Composite", + /* DRM_MODE_CONNECTOR_SVIDEO */ "TV", + /* DRM_MODE_CONNECTOR_LVDS */ "LVDS", + /* DRM_MODE_CONNECTOR_Component */ "CTV", + /* DRM_MODE_CONNECTOR_9PinDIN */ "DIN", + /* DRM_MODE_CONNECTOR_DisplayPort */ "DP", + /* DRM_MODE_CONNECTOR_HDMIA */ "HDMI", + /* DRM_MODE_CONNECTOR_HDMIB */ "HDMI", + /* DRM_MODE_CONNECTOR_TV */ "TV", + /* DRM_MODE_CONNECTOR_eDP */ "eDP", + /* DRM_MODE_CONNECTOR_VIRTUAL */ "Virtual", + /* DRM_MODE_CONNECTOR_DSI */ "DSI" }; static bool |