Commit d044189d authored by Marton Balint's avatar Marton Balint Committed by Mauro Carvalho Chehab

V4L/DVB: cx88: increase BUFFER_TIMEOUT to 2 seconds

When temporarily there is no video signal, sometimes it takes more than 0.5
secs for the cx88 chip to generate a single frame. If a dma timeout occurs
during recording, it confuses the recording application (at least mencoder)
and the recording stops.

Since there is already an #if 0 for 2 seconds buffer timeout in the code
at the -hg development tree, re-enabling that seemed the most simple
solution.
Signed-off-by: default avatarMarton Balint <cus@fazekas.hu>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b628a2a3
......@@ -290,7 +290,7 @@ struct cx88_subid {
#define RESOURCE_VIDEO 2
#define RESOURCE_VBI 4
#define BUFFER_TIMEOUT msecs_to_jiffies(500) /* 0.5 seconds */
#define BUFFER_TIMEOUT msecs_to_jiffies(2000)
/* buffer for one video frame */
struct cx88_buffer {
......
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