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>
This commit is contained in:
Steev Klimaszewski 2022-08-16 17:41:42 -05:00 committed by Marge Bot
parent e2d4da8562
commit 642791673c
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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;