aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-07-17 15:36:20 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-20 16:35:51 -0400
commitfe06fe0a4d0f781f8ae0570e4d7e517a81878c1d (patch)
treebad27deb2805b67d39e025490e68e9572f70f212 /drivers/media
parent818ca4711eb8ec064c1cd5d7657f95ed6bc2bbed (diff)
V4L/DVB (5861): Use msecs_to_jiffies instead of HZ on bttv, cx88 and saa7134
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/bt8xx/bttv-cards.c2
-rw-r--r--drivers/media/video/bt8xx/bttv-input.c2
-rw-r--r--drivers/media/video/bt8xx/bttvp.h4
-rw-r--r--drivers/media/video/cx88/cx88.h2
-rw-r--r--drivers/media/video/saa7134/saa7134.h2
5 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/bt8xx/bttv-cards.c b/drivers/media/video/bt8xx/bttv-cards.c
index 2aea09c72093..387cb2122d4f 100644
--- a/drivers/media/video/bt8xx/bttv-cards.c
+++ b/drivers/media/video/bt8xx/bttv-cards.c
@@ -4209,7 +4209,7 @@ static int tea5757_read(struct bttv *btv)
4209 bus_low(btv,btv->mbox_clk); 4209 bus_low(btv,btv->mbox_clk);
4210 4210
4211 udelay(10); 4211 udelay(10);
4212 timeout= jiffies + HZ; 4212 timeout= jiffies + msecs_to_jiffies(1000);
4213 4213
4214 /* wait for DATA line to go low; error if it doesn't */ 4214 /* wait for DATA line to go low; error if it doesn't */
4215 while (bus_in(btv,btv->mbox_data) && time_before(jiffies, timeout)) 4215 while (bus_in(btv,btv->mbox_data) && time_before(jiffies, timeout))
diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c
index 94a13d0ee614..4201552bc3c0 100644
--- a/drivers/media/video/bt8xx/bttv-input.c
+++ b/drivers/media/video/bt8xx/bttv-input.c
@@ -153,7 +153,7 @@ static void bttv_ir_start(struct bttv *btv, struct card_ir *ir)
153{ 153{
154 if (ir->polling) { 154 if (ir->polling) {
155 setup_timer(&ir->timer, bttv_input_timer, (unsigned long)btv); 155 setup_timer(&ir->timer, bttv_input_timer, (unsigned long)btv);
156 ir->timer.expires = jiffies + HZ; 156 ir->timer.expires = jiffies + msecs_to_jiffies(1000);
157 add_timer(&ir->timer); 157 add_timer(&ir->timer);
158 } else if (ir->rc5_gpio) { 158 } else if (ir->rc5_gpio) {
159 /* set timer_end for code completion */ 159 /* set timer_end for code completion */
diff --git a/drivers/media/video/bt8xx/bttvp.h b/drivers/media/video/bt8xx/bttvp.h
index bd85f6d0fbe3..5b25faca1504 100644
--- a/drivers/media/video/bt8xx/bttvp.h
+++ b/drivers/media/video/bt8xx/bttvp.h
@@ -284,8 +284,8 @@ extern int fini_bttv_i2c(struct bttv *btv);
284#define d2printk if (bttv_debug >= 2) printk 284#define d2printk if (bttv_debug >= 2) printk
285 285
286#define BTTV_MAX_FBUF 0x208000 286#define BTTV_MAX_FBUF 0x208000
287#define BTTV_TIMEOUT (HZ/2) /* 0.5 seconds */ 287#define BTTV_TIMEOUT msecs_to_jiffies(500) /* 0.5 seconds */
288#define BTTV_FREE_IDLE (HZ) /* one second */ 288#define BTTV_FREE_IDLE msecs_to_jiffies(1000) /* one second */
289 289
290 290
291struct bttv_pll_info { 291struct bttv_pll_info {
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h
index c4f656ec46b0..809126866a3e 100644
--- a/drivers/media/video/cx88/cx88.h
+++ b/drivers/media/video/cx88/cx88.h
@@ -259,7 +259,7 @@ struct cx88_subid {
259#define RESOURCE_VIDEO 2 259#define RESOURCE_VIDEO 2
260#define RESOURCE_VBI 4 260#define RESOURCE_VBI 4
261 261
262#define BUFFER_TIMEOUT (HZ/2) /* 0.5 seconds */ 262#define BUFFER_TIMEOUT msecs_to_jiffies(500) /* 0.5 seconds */
263 263
264/* buffer for one video frame */ 264/* buffer for one video frame */
265struct cx88_buffer { 265struct cx88_buffer {
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h
index d32a856192d7..346255468dad 100644
--- a/drivers/media/video/saa7134/saa7134.h
+++ b/drivers/media/video/saa7134/saa7134.h
@@ -314,7 +314,7 @@ struct saa7134_board {
314#define INTERLACE_ON 1 314#define INTERLACE_ON 1
315#define INTERLACE_OFF 2 315#define INTERLACE_OFF 2
316 316
317#define BUFFER_TIMEOUT (HZ/2) /* 0.5 seconds */ 317#define BUFFER_TIMEOUT msecs_to_jiffies(500) /* 0.5 seconds */
318 318
319struct saa7134_dev; 319struct saa7134_dev;
320struct saa7134_dma; 320struct saa7134_dma;