summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-12-09 06:08:29 +0000
committerHolger Waechtler <devnull@localhost>2003-12-09 06:08:29 +0000
commitb64408e8a74e800a9825862904581329b6fe8c4c (patch)
treec8041d7c9edba2b75fe8d7557af521a3b6395200 /linux/drivers/media
parent25de9577de7670c3988e5e50bcfcfce69f2b9f74 (diff)
downloadmediapointer-dvb-s2-b64408e8a74e800a9825862904581329b6fe8c4c.tar.gz
mediapointer-dvb-s2-b64408e8a74e800a9825862904581329b6fe8c4c.tar.bz2
use correct delay values, don't divide by HZ when using dvb_delay().
found by Artur Skawina.
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/frontends/alps_tdmb7.c2
-rw-r--r--linux/drivers/media/dvb/frontends/cx24110.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_tdmb7.c b/linux/drivers/media/dvb/frontends/alps_tdmb7.c
index 2efad1eee..b5ba20768 100644
--- a/linux/drivers/media/dvb/frontends/alps_tdmb7.c
+++ b/linux/drivers/media/dvb/frontends/alps_tdmb7.c
@@ -159,7 +159,7 @@ static int cx22700_init (struct dvb_i2c_bus *i2c)
cx22700_writereg (i2c, 0x00, 0x02); /* soft reset */
cx22700_writereg (i2c, 0x00, 0x00);
- dvb_delay (HZ/100);
+ dvb_delay(10);
for (i=0; i<sizeof(init_tab); i+=2)
cx22700_writereg (i2c, init_tab[i], init_tab[i+1]);
diff --git a/linux/drivers/media/dvb/frontends/cx24110.c b/linux/drivers/media/dvb/frontends/cx24110.c
index 303ada3cc..d429bd374 100644
--- a/linux/drivers/media/dvb/frontends/cx24110.c
+++ b/linux/drivers/media/dvb/frontends/cx24110.c
@@ -248,7 +248,7 @@ static int cx24108_set_tv_freq (struct dvb_i2c_bus *i2c, u32 freq)
cx24108_write(i2c,pll);
cx24110_writereg(i2c,0x56,0x7f);
- dvb_delay(HZ/10); /* wait a moment for the tuner pll to lock */
+ dvb_delay(10); /* wait a moment for the tuner pll to lock */
/* tuner pll lock can be monitored on GPIO pin 4 of cx24110 */
while (!(cx24110_readreg(i2c,0x66)&0x20)&&i<1000)