summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/drivers/media/video/tda8290.c6
-rw-r--r--linux/drivers/media/video/tuner-core.c15
-rw-r--r--v4l/ChangeLog10
3 files changed, 26 insertions, 5 deletions
diff --git a/linux/drivers/media/video/tda8290.c b/linux/drivers/media/video/tda8290.c
index f38681368..a58d67d2f 100644
--- a/linux/drivers/media/video/tda8290.c
+++ b/linux/drivers/media/video/tda8290.c
@@ -1,5 +1,5 @@
/*
- $Id: tda8290.c,v 1.23 2005/10/17 22:01:51 nsh Exp $
+ $Id: tda8290.c,v 1.24 2005/10/18 16:56:27 mchehab Exp $
i2c tv tuner chip device driver
controls the philips tda8290+75 tuner chip combo.
@@ -536,8 +536,8 @@ int tda8290_init(struct i2c_client *c)
}
if (tuner_addrs == 0) {
tuner_addrs = 0x61;
- tuner_info ("could not clearly identify tuner address, defaulting to %x\n",
- tuner_addrs);
+ tuner_info ("Could not clearly identify tda8290/8275 tuner address.\n");
+ return -1;
} else {
tuner_addrs = tuner_addrs & 0xff;
tuner_info ("setting tuner address to %x\n", tuner_addrs);
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index a65a2ca94..66a5452e4 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.75 2005/10/17 21:01:35 hhackmann Exp $
+ * $Id: tuner-core.c,v 1.76 2005/10/18 16:56:27 mchehab Exp $
*
* i2c tv tuner chip device driver
* core core, i.e. kernel interfaces, registering and so on
@@ -375,7 +375,8 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind)
}
/* TEA5767 autodetection code - only for addr = 0xc0 */
if (!no_autodetect) {
- if (addr == 0x60) {
+ switch (addr) {
+ case 0x60:
if (tea5767_autodetection(&t->i2c) != EINVAL) {
t->type = TUNER_TEA5767;
t->mode_mask = T_RADIO;
@@ -387,7 +388,17 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind)
set_type(&t->i2c,t->type, t->mode_mask);
return 0;
}
+ case 0x42:
+ case 0x43:
+ case 0x4a:
+ case 0x44:
+ if (tda8290_init(&t->i2c)<0) {
+ kfree(t);
+ return 0;
+ }
+
}
+
}
/* Initializes only the first adapter found */
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index c61727a6f..772c342af 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,13 @@
+2005-10-18 16:54 mchehab
+
+ * ../linux/drivers/media/video/tda8290.c: (tda8290_init):
+ * ../linux/drivers/media/video/tuner-core.c: (tuner_attach):
+
+ - Added autodetection code to tda8290, to avoid conflicts with
+ tda9887.
+
+ Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
+
2005-10-18 14:26 mchehab
* ../linux/drivers/media/video/saa7134/saa7134-alsa.c: