Skip to content

Commit 6575c34

Browse files
committed
Update to libwacom-1.10
1 parent 625905c commit 6575c34

15 files changed

+93
-50
lines changed

0001-Add-support-for-BUS_VIRTUAL.patch

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From c0eaf576f68b2a34136a7c1c3977ff8531d37504 Mon Sep 17 00:00:00 2001
1+
From d9cc859360c07ed3baa3810bbd4f2074755dba5b Mon Sep 17 00:00:00 2001
22
From: Dorian Stoll <[email protected]>
33
Date: Sat, 27 Jun 2020 18:21:11 +0200
44
Subject: [PATCH 01/11] Add support for BUS_VIRTUAL
@@ -20,31 +20,32 @@ Signed-off-by: Dorian Stoll <[email protected]>
2020
5 files changed, 12 insertions(+), 1 deletion(-)
2121

2222
diff --git a/data/test_data_files.py b/data/test_data_files.py
23-
index 5acdbac..cb5ca6d 100755
23+
index 1953ada..26d274f 100755
2424
--- a/data/test_data_files.py
2525
+++ b/data/test_data_files.py
26-
@@ -29,6 +29,6 @@ def test_device_match(tabletfile):
26+
@@ -34,7 +34,7 @@ def test_device_match(tabletfile):
2727
continue
2828

2929
bus, vid, pid = match.split(':')[:3] # skip the name part of the match
3030
- assert bus in ['usb', 'bluetooth', 'i2c', 'serial'], f'{tabletfile}: unknown bus type'
3131
+ assert bus in ['usb', 'bluetooth', 'i2c', 'serial', 'virt'], f'{tabletfile}: unknown bus type'
3232
assert re.match('[0-9a-f]{4}', vid), f'{tabletfile}: {vid} must be lowercase hex'
3333
assert re.match('[0-9a-f]{4}', pid), f'{tabletfile}: {pid} must be lowercase hex'
34+
3435
diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c
35-
index d57ef2d..17571b6 100644
36+
index a8987f7..3c7d0de 100644
3637
--- a/libwacom/libwacom-database.c
3738
+++ b/libwacom/libwacom-database.c
38-
@@ -130,6 +130,8 @@ bus_from_str (const char *str)
39+
@@ -128,6 +128,8 @@ bus_from_str (const char *str)
3940
return WBUSTYPE_BLUETOOTH;
40-
if (streq(str, "i2c"))
41+
if (g_str_equal(str, "i2c"))
4142
return WBUSTYPE_I2C;
42-
+ if (streq(str, "virt"))
43+
+ if (g_str_equal(str, "virt"))
4344
+ return WBUSTYPE_VIRTUAL;
4445
return WBUSTYPE_UNKNOWN;
4546
}
4647

47-
@@ -148,6 +150,8 @@ bus_to_str (WacomBusType bus)
48+
@@ -146,6 +148,8 @@ bus_to_str (WacomBusType bus)
4849
return "bluetooth";
4950
case WBUSTYPE_I2C:
5051
return "i2c";
@@ -54,10 +55,10 @@ index d57ef2d..17571b6 100644
5455
g_assert_not_reached ();
5556
}
5657
diff --git a/libwacom/libwacom.c b/libwacom/libwacom.c
57-
index 062b313..7b97bb1 100644
58+
index 935344c..88d0777 100644
5859
--- a/libwacom/libwacom.c
5960
+++ b/libwacom/libwacom.c
60-
@@ -147,6 +147,10 @@ get_bus_vid_pid (GUdevDevice *device,
61+
@@ -149,6 +149,10 @@ get_bus_vid_pid (GUdevDevice *device,
6162
*bus = WBUSTYPE_I2C;
6263
retval = TRUE;
6364
break;
@@ -68,7 +69,7 @@ index 062b313..7b97bb1 100644
6869
}
6970

7071
out:
71-
@@ -765,6 +769,7 @@ static void print_match(int fd, const WacomMatch *match)
72+
@@ -797,6 +801,7 @@ static void print_match(int fd, const WacomMatch *match)
7273
case WBUSTYPE_USB: bus_name = "usb"; break;
7374
case WBUSTYPE_SERIAL: bus_name = "serial"; break;
7475
case WBUSTYPE_I2C: bus_name = "i2c"; break;
@@ -89,10 +90,10 @@ index 1b9bc2c..24e99cd 100644
8990

9091
/**
9192
diff --git a/test/test-tablet-validity.c b/test/test-tablet-validity.c
92-
index 9e5b02f..3883341 100644
93+
index 2095089..da5fe07 100644
9394
--- a/test/test-tablet-validity.c
9495
+++ b/test/test-tablet-validity.c
95-
@@ -179,6 +179,7 @@ assert_vidpid(WacomBusType bus, int vid, int pid)
96+
@@ -177,6 +177,7 @@ assert_vidpid(WacomBusType bus, int vid, int pid)
9697
break;
9798
case WBUSTYPE_BLUETOOTH:
9899
case WBUSTYPE_I2C:
@@ -101,5 +102,5 @@ index 9e5b02f..3883341 100644
101102
g_assert_cmpint(pid, >, 0);
102103
break;
103104
--
104-
2.30.1
105+
2.31.1
105106

0002-Add-support-for-Intel-Management-Engine-bus.patch

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 02df4e0f272dff001ee280ab93e8e1c4600375ff Mon Sep 17 00:00:00 2001
1+
From 08eb08f64150fd93b178069d1109116cf90720de Mon Sep 17 00:00:00 2001
22
From: Maximilian Luz <[email protected]>
33
Date: Sat, 1 Jun 2019 21:17:15 +0200
44
Subject: [PATCH 02/11] Add support for Intel Management Engine bus
@@ -15,31 +15,32 @@ the Microsoft Surface Books, Surface Pro 5 and 6, and Surface Laptops.
1515
5 files changed, 12 insertions(+), 1 deletion(-)
1616

1717
diff --git a/data/test_data_files.py b/data/test_data_files.py
18-
index cb5ca6d..466b18a 100755
18+
index 26d274f..bc92658 100755
1919
--- a/data/test_data_files.py
2020
+++ b/data/test_data_files.py
21-
@@ -29,6 +29,6 @@ def test_device_match(tabletfile):
21+
@@ -34,7 +34,7 @@ def test_device_match(tabletfile):
2222
continue
2323

2424
bus, vid, pid = match.split(':')[:3] # skip the name part of the match
2525
- assert bus in ['usb', 'bluetooth', 'i2c', 'serial', 'virt'], f'{tabletfile}: unknown bus type'
2626
+ assert bus in ['usb', 'bluetooth', 'i2c', 'serial', 'virt', 'mei'], f'{tabletfile}: unknown bus type'
2727
assert re.match('[0-9a-f]{4}', vid), f'{tabletfile}: {vid} must be lowercase hex'
2828
assert re.match('[0-9a-f]{4}', pid), f'{tabletfile}: {pid} must be lowercase hex'
29+
2930
diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c
30-
index 17571b6..4c6df4e 100644
31+
index 3c7d0de..28c0ac5 100644
3132
--- a/libwacom/libwacom-database.c
3233
+++ b/libwacom/libwacom-database.c
33-
@@ -132,6 +132,8 @@ bus_from_str (const char *str)
34+
@@ -130,6 +130,8 @@ bus_from_str (const char *str)
3435
return WBUSTYPE_I2C;
35-
if (streq(str, "virt"))
36+
if (g_str_equal(str, "virt"))
3637
return WBUSTYPE_VIRTUAL;
3738
+ if (strcmp (str, "mei") == 0)
3839
+ return WBUSTYPE_MEI;
3940
return WBUSTYPE_UNKNOWN;
4041
}
4142

42-
@@ -152,6 +154,8 @@ bus_to_str (WacomBusType bus)
43+
@@ -150,6 +152,8 @@ bus_to_str (WacomBusType bus)
4344
return "i2c";
4445
case WBUSTYPE_VIRTUAL:
4546
return "virt";
@@ -49,10 +50,10 @@ index 17571b6..4c6df4e 100644
4950
g_assert_not_reached ();
5051
}
5152
diff --git a/libwacom/libwacom.c b/libwacom/libwacom.c
52-
index 7b97bb1..d84e8fa 100644
53+
index 88d0777..09e289f 100644
5354
--- a/libwacom/libwacom.c
5455
+++ b/libwacom/libwacom.c
55-
@@ -151,6 +151,10 @@ get_bus_vid_pid (GUdevDevice *device,
56+
@@ -153,6 +153,10 @@ get_bus_vid_pid (GUdevDevice *device,
5657
*bus = WBUSTYPE_VIRTUAL;
5758
retval = TRUE;
5859
break;
@@ -63,7 +64,7 @@ index 7b97bb1..d84e8fa 100644
6364
}
6465

6566
out:
66-
@@ -770,6 +774,7 @@ static void print_match(int fd, const WacomMatch *match)
67+
@@ -802,6 +806,7 @@ static void print_match(int fd, const WacomMatch *match)
6768
case WBUSTYPE_SERIAL: bus_name = "serial"; break;
6869
case WBUSTYPE_I2C: bus_name = "i2c"; break;
6970
case WBUSTYPE_VIRTUAL: bus_name = "virt"; break;
@@ -84,10 +85,10 @@ index 24e99cd..0eee2fd 100644
8485

8586
/**
8687
diff --git a/test/test-tablet-validity.c b/test/test-tablet-validity.c
87-
index 3883341..352bc43 100644
88+
index da5fe07..6b45597 100644
8889
--- a/test/test-tablet-validity.c
8990
+++ b/test/test-tablet-validity.c
90-
@@ -180,6 +180,7 @@ assert_vidpid(WacomBusType bus, int vid, int pid)
91+
@@ -178,6 +178,7 @@ assert_vidpid(WacomBusType bus, int vid, int pid)
9192
case WBUSTYPE_BLUETOOTH:
9293
case WBUSTYPE_I2C:
9394
case WBUSTYPE_VIRTUAL:
@@ -96,5 +97,5 @@ index 3883341..352bc43 100644
9697
g_assert_cmpint(pid, >, 0);
9798
break;
9899
--
99-
2.30.1
100+
2.31.1
100101

0003-data-Add-Microsoft-Surface-pro-4.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 29c9b7283741e717b61f07bdf14b678c13a6768d Mon Sep 17 00:00:00 2001
1+
From dacd69611f2659f3471bec57b37c842547121b30 Mon Sep 17 00:00:00 2001
22
From: Maximilian Luz <[email protected]>
33
Date: Tue, 18 Aug 2020 20:18:55 +0200
44
Subject: [PATCH 03/11] data: Add Microsoft Surface pro 4
@@ -29,5 +29,5 @@ index 0000000..1e0c67c
2929
+Touch=true
3030
+Buttons=0
3131
--
32-
2.30.1
32+
2.31.1
3333

0004-data-Add-Microsoft-Surface-pro-5.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From ccfc97812543a3db11a2c3dcd0ed25903730dfe3 Mon Sep 17 00:00:00 2001
1+
From f1cf0375b3e8c2e3e2ffa9c1ecff6266e0defa47 Mon Sep 17 00:00:00 2001
22
From: Maximilian Luz <[email protected]>
33
Date: Tue, 18 Aug 2020 20:19:02 +0200
44
Subject: [PATCH 04/11] data: Add Microsoft Surface pro 5
@@ -29,5 +29,5 @@ index 0000000..b26af3a
2929
+Touch=true
3030
+Buttons=0
3131
--
32-
2.30.1
32+
2.31.1
3333

0005-data-Add-Microsoft-Surface-pro-6.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From b378c3636c71c29470b8274de3e69f0fa3dbaa7e Mon Sep 17 00:00:00 2001
1+
From df44bc318ba3be62d71a02f7ae5f7945e1bc84d1 Mon Sep 17 00:00:00 2001
22
From: Maximilian Luz <[email protected]>
33
Date: Tue, 18 Aug 2020 20:19:07 +0200
44
Subject: [PATCH 05/11] data: Add Microsoft Surface pro 6
@@ -29,5 +29,5 @@ index 0000000..e97fad8
2929
+Touch=true
3030
+Buttons=0
3131
--
32-
2.30.1
32+
2.31.1
3333

0006-data-Add-Microsoft-Surface-pro-7.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 0b12a623e70d877fa6bf1df615d06229f7b2eb83 Mon Sep 17 00:00:00 2001
1+
From d7375f57f1ce83c43663d3dd3f9e8e7acd0642b4 Mon Sep 17 00:00:00 2001
22
From: Maximilian Luz <[email protected]>
33
Date: Tue, 18 Aug 2020 20:19:13 +0200
44
Subject: [PATCH 06/11] data: Add Microsoft Surface pro 7
@@ -29,5 +29,5 @@ index 0000000..7961379
2929
+Touch=true
3030
+Buttons=0
3131
--
32-
2.30.1
32+
2.31.1
3333

0007-data-Add-Microsoft-Surface-Book.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From da5c0255ab397bc5537861f9b48d3036f2fc8e98 Mon Sep 17 00:00:00 2001
1+
From 97a7c34729ac47a2589583356bce90db0f8dcdc0 Mon Sep 17 00:00:00 2001
22
From: Maximilian Luz <[email protected]>
33
Date: Tue, 18 Aug 2020 20:19:38 +0200
44
Subject: [PATCH 07/11] data: Add Microsoft Surface Book
@@ -29,5 +29,5 @@ index 0000000..e2a5401
2929
+Touch=true
3030
+Buttons=0
3131
--
32-
2.30.1
32+
2.31.1
3333

0008-data-Add-Microsoft-Surface-Book-2-13.5.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 3779329faa2e5e4d974ef2ad92dee3e0a8c90888 Mon Sep 17 00:00:00 2001
1+
From f2dc8dffdfc0d48fbdd5a12fe7faccf1ceebcdb8 Mon Sep 17 00:00:00 2001
22
From: Maximilian Luz <[email protected]>
33
Date: Tue, 18 Aug 2020 20:20:04 +0200
44
Subject: [PATCH 08/11] data: Add Microsoft Surface Book 2 (13.5")
@@ -29,5 +29,5 @@ index 0000000..b13cb07
2929
+Touch=true
3030
+Buttons=0
3131
--
32-
2.30.1
32+
2.31.1
3333

0009-data-Add-Microsoft-Surface-Book-2-15.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 13e81b74340251dba524b6f414e3452e93458929 Mon Sep 17 00:00:00 2001
1+
From 677edc8b43d57546f756e94d81f789bfddeb8541 Mon Sep 17 00:00:00 2001
22
From: Maximilian Luz <[email protected]>
33
Date: Tue, 18 Aug 2020 20:20:13 +0200
44
Subject: [PATCH 09/11] data: Add Microsoft Surface Book 2 (15")
@@ -29,5 +29,5 @@ index 0000000..ad98cc7
2929
+Touch=true
3030
+Buttons=0
3131
--
32-
2.30.1
32+
2.31.1
3333

0010-data-Add-Microsoft-Surface-Book-3-13.5.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 84f8519285c39cf3b35175f94a38cd48b3a7d922 Mon Sep 17 00:00:00 2001
1+
From 5febbddb27f61c4b0bb2b2dc551c2dc6e3930c16 Mon Sep 17 00:00:00 2001
22
From: Maximilian Luz <[email protected]>
33
Date: Tue, 18 Aug 2020 20:20:29 +0200
44
Subject: [PATCH 10/11] data: Add Microsoft Surface Book 3 (13.5")
@@ -29,5 +29,5 @@ index 0000000..a33c9cb
2929
+Touch=true
3030
+Buttons=0
3131
--
32-
2.30.1
32+
2.31.1
3333

0 commit comments

Comments
 (0)