diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-04-26 13:22:11 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-04-26 13:22:11 +0200 |
commit | ade60251da23a46f8e352f8ecc5d574325bb050d (patch) | |
tree | 34f7a8fb80cd6ec9a31e9fc1b1406b2d30347d62 /linux/drivers/media/video/ivtv | |
parent | bd79a6befe5540b28bff79ee6216c484440c403f (diff) | |
download | mediapointer-dvb-s2-ade60251da23a46f8e352f8ecc5d574325bb050d.tar.gz mediapointer-dvb-s2-ade60251da23a46f8e352f8ecc5d574325bb050d.tar.bz2 |
ivtv: increase the DMA timeout from 100 to 300 ms.
From: Hans Verkuil <hverkuil@xs4all.nl>
When there is a lot of DMA traffic this timeout might sometimes be too low.
Increase it to be on the safe side.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/ivtv')
-rw-r--r-- | linux/drivers/media/video/ivtv/ivtv-irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-irq.c b/linux/drivers/media/video/ivtv/ivtv-irq.c index 0e417d860..41066e87f 100644 --- a/linux/drivers/media/video/ivtv/ivtv-irq.c +++ b/linux/drivers/media/video/ivtv/ivtv-irq.c @@ -390,7 +390,7 @@ static void ivtv_dma_enc_start_xfer(struct ivtv_stream *s) ivtv_stream_sync_for_device(s); write_reg(s->sg_handle, IVTV_REG_ENCDMAADDR); write_reg_sync(read_reg(IVTV_REG_DMAXFER) | 0x02, IVTV_REG_DMAXFER); - itv->dma_timer.expires = jiffies + msecs_to_jiffies(100); + itv->dma_timer.expires = jiffies + msecs_to_jiffies(300); add_timer(&itv->dma_timer); } @@ -406,7 +406,7 @@ static void ivtv_dma_dec_start_xfer(struct ivtv_stream *s) ivtv_stream_sync_for_device(s); write_reg(s->sg_handle, IVTV_REG_DECDMAADDR); write_reg_sync(read_reg(IVTV_REG_DMAXFER) | 0x01, IVTV_REG_DMAXFER); - itv->dma_timer.expires = jiffies + msecs_to_jiffies(100); + itv->dma_timer.expires = jiffies + msecs_to_jiffies(300); add_timer(&itv->dma_timer); } |