Commit af766ee0 authored by Florian Echtler's avatar Florian Echtler Committed by Mauro Carvalho Chehab

[media] sur40: lower poll interval to fix occasional FPS drops to ~56 FPS

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: default avatarMartin Kaltenbrunner <modin@yuri.at>
Signed-off-by: default avatarFlorian Echtler <floe@butterbrot.org>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org>      # for v4.2 and up
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent bcdb9040
...@@ -126,7 +126,7 @@ struct sur40_image_header { ...@@ -126,7 +126,7 @@ struct sur40_image_header {
#define VIDEO_PACKET_SIZE 16384 #define VIDEO_PACKET_SIZE 16384
/* polling interval (ms) */ /* polling interval (ms) */
#define POLL_INTERVAL 4 #define POLL_INTERVAL 1
/* maximum number of contacts FIXME: this is a guess? */ /* maximum number of contacts FIXME: this is a guess? */
#define MAX_CONTACTS 64 #define MAX_CONTACTS 64
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment