diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2019-11-04 08:30:18 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2019-11-04 08:30:18 -0800 |
commit | c79476f6520207e6bfe071af183835d6e4c2bcc3 (patch) | |
tree | 3be3df549f9329d3b408d1946202cf156722dfb2 | |
parent | 3b7d509482fb51b4c774ae7b8fb5465694f45d8a (diff) |
440.31440.31
-rw-r--r-- | XF86Config-parser/Device.c | 2 | ||||
-rw-r--r-- | XF86Config-parser/Generate.c | 9 | ||||
-rw-r--r-- | XF86Config-parser/xf86Parser.h | 2 | ||||
-rw-r--r-- | version.mk | 2 |
4 files changed, 8 insertions, 7 deletions
diff --git a/XF86Config-parser/Device.c b/XF86Config-parser/Device.c index c759e64..c31d5f5 100644 --- a/XF86Config-parser/Device.c +++ b/XF86Config-parser/Device.c @@ -527,7 +527,7 @@ void xconfigAddInactiveDevice(XConfigPtr config, XConfigLayoutPtr layout, XConfigInactivePtr inac; device = add_device(config, -1, -1, -1, NULL, device_n, - "modesetting", "Unknown"); + "modesetting", "Unknown", FALSE /* active */); inac = xconfigAlloc(sizeof (XConfigInactiveRec)); inac->next = NULL; diff --git a/XF86Config-parser/Generate.c b/XF86Config-parser/Generate.c index b446558..34eb0d4 100644 --- a/XF86Config-parser/Generate.c +++ b/XF86Config-parser/Generate.c @@ -37,7 +37,7 @@ #define KEYBOARD_IDENTIFER "Keyboard0" #define SCREEN_IDENTIFIER "Screen%d" -#define DEVICE_IDENTIFIER "Device%d" +#define DEVICE_IDENTIFIER "%sDevice%d" #define MONITOR_IDENTIFIER "Monitor%d" @@ -102,7 +102,7 @@ XConfigScreenPtr xconfigGenerateAddScreen(XConfigPtr config, monitor = xconfigAddMonitor(config, count); device = add_device(config, bus, domain, slot, boardname, count, - driver, vendor); + driver, vendor, TRUE /* active */); screen = xconfigAlloc(sizeof(XConfigScreenRec)); @@ -450,14 +450,15 @@ XConfigMonitorPtr xconfigAddMonitor(XConfigPtr config, int count) XConfigDevicePtr add_device(XConfigPtr config, int bus, int domain, int slot, char *boardname, int count, - const char *driver, const char *vendor) + const char *driver, const char *vendor, int active) { XConfigDevicePtr device, d; device = xconfigAlloc(sizeof(XConfigDeviceRec)); device->identifier = xconfigAlloc(32); - snprintf(device->identifier, 32, DEVICE_IDENTIFIER, count); + snprintf(device->identifier, 32, DEVICE_IDENTIFIER, + active ? "" : "Inactive", count); device->index_id = count; device->driver = xconfigStrdup(driver); device->vendor = xconfigStrdup(vendor); diff --git a/XF86Config-parser/xf86Parser.h b/XF86Config-parser/xf86Parser.h index 2c8163b..92144a4 100644 --- a/XF86Config-parser/xf86Parser.h +++ b/XF86Config-parser/xf86Parser.h @@ -757,7 +757,7 @@ XConfigScreenPtr xconfigGenerateAddScreen(XConfigPtr config, XConfigDevicePtr add_device(XConfigPtr config, int bus, int domain, int slot, char *boardname, int count, - const char *driver, const char *vendor); + const char *driver, const char *vendor, int active); void xconfigAddInactiveDevice(XConfigPtr config, XConfigLayoutPtr layout, int device_n); @@ -1 +1 @@ -NVIDIA_VERSION = 440.26 +NVIDIA_VERSION = 440.31 |