[mutter/gnome-42] Update meta connector types enum
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-42] Update meta connector types enum
- Date: Wed, 17 Aug 2022 21:02:12 +0000 (UTC)
commit 29e7d2378bedcdd36efea619520ff4afbad65f66
Author: Steev Klimaszewski <threeway gmail com>
Date: Tue Aug 16 17:41:42 2022 -0500
Update meta connector types enum
This adds the 4 new connector types that mutter didn't know about from
drm_mode.h in the kernel.
Noticed because mutter kept crashing when plugging in a USB-C adapter to
use an external monitor.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2577>
(cherry picked from commit 642791673c345bd1432f97d6b7c5e4632e01f2fd)
src/backends/meta-monitor-manager.c | 4 ++++
src/backends/meta-output.h | 4 ++++
2 files changed, 8 insertions(+)
---
diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c
index be99b46642..24470b5787 100644
--- a/src/backends/meta-monitor-manager.c
+++ b/src/backends/meta-monitor-manager.c
@@ -1457,6 +1457,10 @@ get_connector_type_name (MetaConnectorType connector_type)
case META_CONNECTOR_TYPE_eDP: return "eDP";
case META_CONNECTOR_TYPE_VIRTUAL: return "VIRTUAL";
case META_CONNECTOR_TYPE_DSI: return "DSI";
+ case META_CONNECTOR_TYPE_DPI: return "DPI";
+ case META_CONNECTOR_TYPE_WRITEBACK: return "WRITEBACK";
+ case META_CONNECTOR_TYPE_SPI: return "SPI";
+ case META_CONNECTOR_TYPE_USB: return "USB";
default: g_assert_not_reached ();
}
return NULL;
diff --git a/src/backends/meta-output.h b/src/backends/meta-output.h
index 6c90d7e69e..cbacabace9 100644
--- a/src/backends/meta-output.h
+++ b/src/backends/meta-output.h
@@ -60,6 +60,10 @@ typedef enum
META_CONNECTOR_TYPE_eDP = 14,
META_CONNECTOR_TYPE_VIRTUAL = 15,
META_CONNECTOR_TYPE_DSI = 16,
+ META_CONNECTOR_TYPE_DPI = 17,
+ META_CONNECTOR_TYPE_WRITEBACK = 18,
+ META_CONNECTOR_TYPE_SPI = 19,
+ META_CONNECTOR_TYPE_USB = 20,
META_CONNECTOR_TYPE_META = 1000,
} MetaConnectorType;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]