summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorOliver Endriss <devnull@localhost>2003-09-26 19:56:03 +0000
committerOliver Endriss <devnull@localhost>2003-09-26 19:56:03 +0000
commit8f0d2c45d487cc66de214bfce9288f7308530b68 (patch)
tree063669ad6413910141b02bef017ea1a4c33c8ad4 /linux/drivers/media/dvb
parent906c0081fc44f4f3ee871e49ece0b35dd1d48fcb (diff)
downloadmediapointer-dvb-s2-8f0d2c45d487cc66de214bfce9288f7308530b68.tar.gz
mediapointer-dvb-s2-8f0d2c45d487cc66de214bfce9288f7308530b68.tar.bz2
fixed detection of stv0299 if chip is in standby mode
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/frontends/stv0299.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/stv0299.c b/linux/drivers/media/dvb/frontends/stv0299.c
index 1ea653527..d3384ba72 100644
--- a/linux/drivers/media/dvb/frontends/stv0299.c
+++ b/linux/drivers/media/dvb/frontends/stv0299.c
@@ -913,7 +913,10 @@ static long probe_tuner (struct dvb_i2c_bus *i2c)
static int uni0299_attach (struct dvb_i2c_bus *i2c)
{
long tuner_type;
- u8 id = stv0299_readreg (i2c, 0x00);
+ u8 id;
+
+ stv0299_writereg (i2c, 0x02, 0x00); /* standby off */
+ id = stv0299_readreg (i2c, 0x00);
dprintk ("%s: id == 0x%02x\n", __FUNCTION__, id);