aboutsummaryrefslogtreecommitdiff
path: root/SOURCES/set-ps4-bt-poll-rate-1000hz.patch
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCES/set-ps4-bt-poll-rate-1000hz.patch')
-rw-r--r--SOURCES/set-ps4-bt-poll-rate-1000hz.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/SOURCES/set-ps4-bt-poll-rate-1000hz.patch b/SOURCES/set-ps4-bt-poll-rate-1000hz.patch
new file mode 100644
index 0000000..8431cf7
--- /dev/null
+++ b/SOURCES/set-ps4-bt-poll-rate-1000hz.patch
@@ -0,0 +1,27 @@
+From 0f2c07ab93dca496a1f34399ad2ff8a954690a72 Mon Sep 17 00:00:00 2001
+From: GloriousEggroll <gloriouseggroll@gmail.com>
+Date: Mon, 29 May 2023 17:15:14 -0600
+Subject: [PATCH] set ds controller bluetooth pollrate to 1 ms
+
+---
+ drivers/hid/hid-playstation.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/hid/hid-playstation.c b/drivers/hid/hid-playstation.c
+index 8ac8f7b8e..1130663c3 100644
+--- a/drivers/hid/hid-playstation.c
++++ b/drivers/hid/hid-playstation.c
+@@ -330,8 +330,8 @@ struct dualsense_output_report {
+ * 0x3F - disabled
+ */
+ #define DS4_OUTPUT_HWCTL_BT_POLL_MASK 0x3F
+-/* Default to 4ms poll interval, which is same as USB (not adjustable). */
+-#define DS4_BT_DEFAULT_POLL_INTERVAL_MS 4
++/* Default to 1ms poll interval (1000Hz, lower latency). */
++#define DS4_BT_DEFAULT_POLL_INTERVAL_MS 1
+ #define DS4_OUTPUT_HWCTL_CRC32 0x40
+ #define DS4_OUTPUT_HWCTL_HID 0x80
+
+--
+2.40.1
+