From 8f0d2c45d487cc66de214bfce9288f7308530b68 Mon Sep 17 00:00:00 2001 From: Oliver Endriss Date: Fri, 26 Sep 2003 19:56:03 +0000 Subject: fixed detection of stv0299 if chip is in standby mode --- linux/drivers/media/dvb/frontends/stv0299.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb/frontends') 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); -- cgit v1.2.3