diff options
author | Gerd Knorr <devnull@localhost> | 2005-02-10 09:24:12 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2005-02-10 09:24:12 +0000 |
commit | d181639581de477cc7fbb3fc044e5a7c1c91074e (patch) | |
tree | d46e9d2e6c7cd1fbe96c72c48aee4d7ea4e07234 /linux/drivers/media/video | |
parent | e64835004be4d0f94e94e7cdea08caac3a025e58 (diff) | |
download | mediapointer-dvb-s2-d181639581de477cc7fbb3fc044e5a7c1c91074e.tar.gz mediapointer-dvb-s2-d181639581de477cc7fbb3fc044e5a7c1c91074e.tar.bz2 |
- some tuner fixups.
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/tda8290.c | 5 | ||||
-rw-r--r-- | linux/drivers/media/video/tuner-core.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/linux/drivers/media/video/tda8290.c b/linux/drivers/media/video/tda8290.c index 6c54d9e82..739e96fee 100644 --- a/linux/drivers/media/video/tda8290.c +++ b/linux/drivers/media/video/tda8290.c @@ -1,5 +1,5 @@ /* - * $Id: tda8290.c,v 1.2 2005/02/09 19:27:21 kraxel Exp $ + * $Id: tda8290.c,v 1.3 2005/02/10 09:24:12 kraxel Exp $ * * i2c tv tuner chip device driver * controls the philips tda8290+75 tuner chip combo. @@ -11,9 +11,6 @@ /* ---------------------------------------------------------------------- */ -#define I2C_ADDR_TDA8290 0x4b -#define I2C_ADDR_TDA8275 0x61 - struct freq_entry { u16 freq; u8 value; diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index 0fdc2fcf6..45ac397f2 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -1,5 +1,5 @@ /* - * $Id: tuner-core.c,v 1.2 2005/02/09 19:27:21 kraxel Exp $ + * $Id: tuner-core.c,v 1.3 2005/02/10 09:24:12 kraxel Exp $ * * i2c tv tuner chip device driver * core core, i.e. kernel interfaces, registering and so on @@ -28,6 +28,7 @@ /* standard i2c insmod options */ static unsigned short normal_i2c[] = { + 0x4b, /* tda8290 */ I2C_CLIENT_END }; static unsigned short normal_i2c_range[] = { @@ -146,6 +147,7 @@ static void set_type(struct i2c_client *c, unsigned int type, char *source) if (type >= tuner_count) return; + t->type = type; switch (t->type) { case TUNER_MT2032: microtune_init(c); @@ -221,6 +223,9 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind) t->type = UNSET; t->radio_if2 = 10700*1000; // 10.7MHz - FM radio + if (I2C_ADDR_TDA8290 == client->addr) + t->type = TUNER_PHILIPS_TDA8290; + i2c_attach_client(client); return 0; } @@ -228,6 +233,7 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind) static int tuner_probe(struct i2c_adapter *adap) { if (0 != addr) { + normal_i2c[0] = addr; normal_i2c_range[0] = addr; normal_i2c_range[1] = addr; } |