Skip to contentSkip to conversation

Input: ili210x - Reduce sample period to 15ms

PATCH Applied Marek Vasut 2 participants 2 messages Nov 8, 2021 – Nov 10, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: ili210x - Reduce sample period to 15ms

Modern devices may redraw display at 60 Hz, make sure we have one input sample per one frame. Reduce sample period to 15ms, so we would get up to 66.6 samples per second, although realistically with all the jitter and extra scheduling wiggle room, we would end up just above 60 samples per second. This should be a good compromise between sampling too often and sampling too seldom.

Cc Dmitry Torokhov <[email protected]>
Cc Joe Hung <[email protected]>
Cc Luca Hsu <[email protected]>
---
 drivers/input/touchscreen/ili210x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/touchscreen/ili210x.c +1 -1
index 6dd5095be567f..ba0e2ae3928a7 100644
@@ -14,7 +14,7 @@
 #include <linux/slab.h>
 #include <asm/unaligned.h>
 
-#define ILI2XXX_POLL_PERIOD	20
+#define ILI2XXX_POLL_PERIOD	15
 
 #define ILI210X_DATA_SIZE	64
 #define ILI211X_DATA_SIZE	43
Signature · 1 line
2.33.0
maintainer Applied
#1 lore raw
Quoted 11 lines · Marek Vasut

Modern devices may redraw display at 60 Hz, make sure we have one input sample per one frame. Reduce sample period to 15ms, so we would get up to 66.6 samples per second, although realistically with all the jitter and extra scheduling wiggle room, we would end up just above 60 samples per second. This should be a good compromise between sampling too often and sampling too seldom.

Cc Dmitry Torokhov <[email protected]>
Cc Joe Hung <[email protected]>
Cc Luca Hsu <[email protected]>

Applied, thank you.

Signature · 1 line
Dmitry