From: Florian Echtler Date: Tue, 31 May 2016 20:15:32 +0000 (-0300) Subject: sur40: lower poll interval to fix occasional FPS drops to ~56 FPS X-Git-Tag: firefly_0821_release~176^2~4^2~31^2~409 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f8ad7cb60062a5a0514eb720b44f164276ebc4e0;p=firefly-linux-kernel-4.4.55.git sur40: lower poll interval to fix occasional FPS drops to ~56 FPS commit af766ee005c496b8567976dc3eed7676443ed6de upstream. The framerate sometimes drops below 60 Hz if the poll interval is too high. Lowering it to the minimum of 1 ms fixes this. Signed-off-by: Martin Kaltenbrunner Signed-off-by: Florian Echtler Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/input/touchscreen/sur40.c b/drivers/input/touchscreen/sur40.c index d214f22ed305..07a262bddf57 100644 --- a/drivers/input/touchscreen/sur40.c +++ b/drivers/input/touchscreen/sur40.c @@ -126,7 +126,7 @@ struct sur40_image_header { #define VIDEO_PACKET_SIZE 16384 /* polling interval (ms) */ -#define POLL_INTERVAL 4 +#define POLL_INTERVAL 1 /* maximum number of contacts FIXME: this is a guess? */ #define MAX_CONTACTS 64