summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-11-28 09:14:44 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-11-28 09:14:44 -0200
commit536780a1c21f6c46a109ada4c4e0e1a6a1c9a1f2 (patch)
treed154a01194c361a8715d5bd489fc1a192fb3237d
parent9ad76b12c1e328a6fde30c9f9a8e31699fdce0f7 (diff)
downloadmediapointer-dvb-s2-536780a1c21f6c46a109ada4c4e0e1a6a1c9a1f2.tar.gz
mediapointer-dvb-s2-536780a1c21f6c46a109ada4c4e0e1a6a1c9a1f2.tar.bz2
Accept tuners on saa7146 i2c bus only on address 0x60.
From: Michael Hunold <hunold@linuxtv.org> Signed-off-by: Michael Hunold <hunold@linuxtv.org>
-rw-r--r--linux/drivers/media/video/tuner-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index 5e040a0a8..b1db6bf50 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -489,6 +489,10 @@ static int tuner_attach(struct i2c_adapter *adap, int addr,
printk("%02x ",buffer[i]);
printk("\n");
}
+ /* HACK: This test were added to avoid tuner to probe tda9840 and tea6415c on the MXB card */
+ if (adap->id == I2C_HW_SAA7146 && addr < 0x4a)
+ return -ENODEV;
+
/* autodetection code based on the i2c addr */
if (!no_autodetect) {
switch (addr) {