[mutter] Update meta connector types enum



commit 642791673c345bd1432f97d6b7c5e4632e01f2fd
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>

 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 a97868750f..36e8a53e72 100644
--- a/src/backends/meta-monitor-manager.c
+++ b/src/backends/meta-monitor-manager.c
@@ -1524,6 +1524,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]