From: Michael Hunold Date: Tue, 28 Nov 2006 11:14:44 +0000 (-0300) Subject: V4L/DVB (4895): Accept tuners on saa7146 i2c bus only on address 0x60. X-Git-Tag: v2.6.20-rc2~85^2~18^2~45 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c28089a65ca03890db120ee2bf6a7eb0cf603817;p=linux-2.6-omap-h63xx.git V4L/DVB (4895): Accept tuners on saa7146 i2c bus only on address 0x60. Signed-off-by: Michael Hunold Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 40590bae5ff..705daaa2a4f 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c @@ -443,6 +443,10 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind) 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) {