Skip to content

Commit

Permalink
connector: Add writeback, SPI, and USB connector type strings
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Stevenson <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
  • Loading branch information
6by9 authored and tomba committed Sep 12, 2023
1 parent 7fb1c84 commit c1e0f2a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kms++/src/connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ namespace kms
#ifndef DRM_MODE_CONNECTOR_DPI
#define DRM_MODE_CONNECTOR_DPI 17
#endif
#ifndef DRM_MODE_CONNECTOR_WRITEBACK
#define DRM_MODE_CONNECTOR_WRITEBACK 18
#endif
#ifndef DRM_MODE_CONNECTOR_SPI
#define DRM_MODE_CONNECTOR_SPI 19
#endif
#ifndef DRM_MODE_CONNECTOR_USB
#define DRM_MODE_CONNECTOR_USB 20
#endif

static const map<int, string> connector_names = {
{ DRM_MODE_CONNECTOR_Unknown, "Unknown" },
Expand All @@ -35,6 +44,9 @@ static const map<int, string> connector_names = {
{ DRM_MODE_CONNECTOR_VIRTUAL, "Virtual" },
{ DRM_MODE_CONNECTOR_DSI, "DSI" },
{ DRM_MODE_CONNECTOR_DPI, "DPI" },
{ DRM_MODE_CONNECTOR_WRITEBACK, "Writeback" },
{ DRM_MODE_CONNECTOR_SPI, "SPI" },
{ DRM_MODE_CONNECTOR_USB, "USB" },
};

static const map<int, string> connection_str = {
Expand Down

0 comments on commit c1e0f2a

Please sign in to comment.