Return-Path: Received: from www.linuxtv.org ([130.149.80.248]:38644 "EHLO www.linuxtv.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755400AbcGHTRd (ORCPT ); Fri, 8 Jul 2016 15:17:33 -0400 From: Mauro Carvalho Chehab Date: Fri, 08 Jul 2016 19:16:56 +0000 Subject: [git:media_tree/master] [media] sur40: lower poll interval to fix occasional FPS drops to ~56 FPS To: linuxtv-commits@linuxtv.org Cc: Martin Kaltenbrunner , Hans Verkuil , Florian Echtler , stable@vger.kernel.org Reply-to: linux-media@vger.kernel.org Message-Id: Sender: stable-owner@vger.kernel.org List-ID: This is an automatic generated email to let you know that the following patch were queued: Subject: [media] sur40: lower poll interval to fix occasional FPS drops to ~56 FPS Author: Florian Echtler Date: Tue May 31 17:15:32 2016 -0300 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 Cc: # for v4.2 and up Signed-off-by: Mauro Carvalho Chehab drivers/input/touchscreen/sur40.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- diff --git a/drivers/input/touchscreen/sur40.c b/drivers/input/touchscreen/sur40.c index f124f3af0de1..bff525f26e87 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