Skip to content
Snippets Groups Projects
Commit 17cc375d authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by François Cartegnie
Browse files

kms: use DRM_DIR_NAME for /dev/dri path

The path to card* is different on Linux and on other systems like
some BSD ones supporting the DRM infrastructure.
parent 2987ee05
No related branches found
No related tags found
1 merge request!893Split KMS into window module and fix current behaviour
......@@ -53,7 +53,7 @@
#define DEVICE_TEXT "Framebuffer device"
#define DEVICE_LONGTEXT \
"Framebuffer device to use for rendering (usually /dev/dri/card0)."
"Framebuffer device to use for rendering (usually /dev/dri/card0 or /dev/drm0)."
#define KMS_CONNECTOR_TEXT "DRM Connector"
#define KMS_CONNECTOR_LONGTEXT \
......@@ -437,7 +437,8 @@ vlc_module_begin ()
set_subcategory(SUBCAT_VIDEO_VOUT)
add_obsolete_string("kms") /* Since 4.0.0 */
add_loadfile(KMS_DEVICE_VAR, "/dev/dri/card0", DEVICE_TEXT, DEVICE_LONGTEXT)
add_loadfile(KMS_DEVICE_VAR, DRM_DIR_NAME "/" DRM_PRIMARY_MINOR_NAME "0",
DEVICE_TEXT, DEVICE_LONGTEXT)
add_string("kms-connector", "", KMS_CONNECTOR_TEXT, KMS_CONNECTOR_LONGTEXT)
set_description("Linux kernel mode setting window provider")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment