summaryrefslogtreecommitdiff
path: root/kms++
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-04-27 13:01:12 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-04-27 13:08:38 +0300
commit201356009cda2c62e13c4129826f7541d3a8ed6f (patch)
treebeb3ca41ba54013c5d2d730edbd9021af98263bf /kms++
parent494e0dbd4e84da686bc958e421af0c6fbcee85f2 (diff)
connector: add DPI connector type
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++')
-rw-r--r--kms++/src/connector.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/kms++/src/connector.cpp b/kms++/src/connector.cpp
index 48c5815..9141431 100644
--- a/kms++/src/connector.cpp
+++ b/kms++/src/connector.cpp
@@ -13,6 +13,9 @@ using namespace std;
namespace kms
{
+#ifndef DRM_MODE_CONNECTOR_DPI
+#define DRM_MODE_CONNECTOR_DPI 17
+#endif
static const map<int, string> connector_names = {
{ DRM_MODE_CONNECTOR_Unknown, "Unknown" },
@@ -32,6 +35,7 @@ static const map<int, string> connector_names = {
{ DRM_MODE_CONNECTOR_eDP, "eDP" },
{ DRM_MODE_CONNECTOR_VIRTUAL, "Virtual" },
{ DRM_MODE_CONNECTOR_DSI, "DSI" },
+ { DRM_MODE_CONNECTOR_DPI, "DPI" },
};
static const map<int, string> connection_str = {