aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2008-05-26 04:54:24 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:07:02 -0400
commitfa98e594220b86eb3632de478352e93ebf1201fa (patch)
tree7e831252379c06cbfbbd2a214d5e836b1ad92b7d
parent83ce57aa45a59e25146a32ee9f68edb7eecacd2b (diff)
V4L/DVB (7938): pvrusb2: Increase enforced encoder wait delay to improve reliability
The driver enforces a "quiet period" on the encoder in certain situations before attempting to operate it. This seems to help avoid video encoding errors / corruption. The quiet period was 50msec, but through experimentation it has been observed to improve further if the interval is increased to 100msec. Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index d4d57951cca2..f30e13f6ee74 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -44,8 +44,10 @@
44#define TIME_MSEC_DECODER_WAIT 50 44#define TIME_MSEC_DECODER_WAIT 50
45 45
46/* This defines a minimum interval that the encoder must remain quiet 46/* This defines a minimum interval that the encoder must remain quiet
47 before we are allowed to configure it. */ 47 before we are allowed to configure it. I had this originally set to
48#define TIME_MSEC_ENCODER_WAIT 50 48 50msec, but Martin Dauskardt <martin.dauskardt@gmx.de> reports that
49 things work better when it's set to 100msec. */
50#define TIME_MSEC_ENCODER_WAIT 100
49 51
50/* This defines the minimum interval that the encoder must successfully run 52/* This defines the minimum interval that the encoder must successfully run
51 before we consider that the encoder has run at least once since its 53 before we consider that the encoder has run at least once since its