diff options
author | Andy Walls <awalls@radix.net> | 2010-01-17 19:12:24 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:41 -0500 |
commit | 95480f2773588eabb35ac9354d068b068ef11e70 (patch) | |
tree | 5ffd7c5593eded215577a33b7f021626fcdeeab9 /drivers/media/video/ivtv/ivtv-streams.c | |
parent | 3ccc646b56a3f03029a259c6a8affd9cecc6020e (diff) |
V4L/DVB: ivtv: Adjust msleep() delays used to prevent tinny audio and PCI bus hang
Martin Dauskardt <martin.dauskardt@gmx.de> has done extensive testing on what
values can be used and and concluded that only 300 ms total is required to
avoid bad video effects such as occasional black screen and short sync
disturbances. Furthermore he determined how this 300 ms was split between
the two msleep()s did matter very much, so he suggested 150ms/150ms as one
acceptable alternative that is implemented here.
Many thanks go to Martin.
Tested-by: Martin Dauskardt <martin.dauskardt@gmx.de>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-streams.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-streams.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/ivtv/ivtv-streams.c b/drivers/media/video/ivtv/ivtv-streams.c index 2f90dd255cd7..1f9387f6ca24 100644 --- a/drivers/media/video/ivtv/ivtv-streams.c +++ b/drivers/media/video/ivtv/ivtv-streams.c | |||
@@ -581,10 +581,10 @@ int ivtv_start_v4l2_encode_stream(struct ivtv_stream *s) | |||
581 | v4l2_subdev_call(itv->sd_audio, audio, s_stream, 1); | 581 | v4l2_subdev_call(itv->sd_audio, audio, s_stream, 1); |
582 | /* Avoid unpredictable PCI bus hang - disable video clocks */ | 582 | /* Avoid unpredictable PCI bus hang - disable video clocks */ |
583 | v4l2_subdev_call(itv->sd_video, video, s_stream, 0); | 583 | v4l2_subdev_call(itv->sd_video, video, s_stream, 0); |
584 | ivtv_msleep_timeout(300, 1); | 584 | ivtv_msleep_timeout(150, 1); |
585 | ivtv_vapi(itv, CX2341X_ENC_INITIALIZE_INPUT, 0); | 585 | ivtv_vapi(itv, CX2341X_ENC_INITIALIZE_INPUT, 0); |
586 | v4l2_subdev_call(itv->sd_video, video, s_stream, 1); | 586 | v4l2_subdev_call(itv->sd_video, video, s_stream, 1); |
587 | ivtv_msleep_timeout(300, 1); | 587 | ivtv_msleep_timeout(150, 1); |
588 | } | 588 | } |
589 | 589 | ||
590 | /* begin_capture */ | 590 | /* begin_capture */ |