Commit 696ad2fb authored by Michael Hunold's avatar Michael Hunold Committed by Linus Torvalds

[PATCH] v4l: keep tvaudio driver away from saa7146

The attached patch keeps the tvaudio i2c helper module away from any
saa7146 based framegrabber.  All saa7146 drivers have their dedicated i2c
helper modules and don't work together with tvaudio, so keep it away
alltogether.  This will make mixed-card configurations work.

The patch was discussed and ack'ed by Gerd Knorr.

- don't attach tvaudio module on saa7146 i2c busses
Signed-off-by: default avatarMichael Hunold <hunold@linuxtv.org>
Acked-by: default avatarGerd Knorr <kraxel@bytesex.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ba60ea4d
...@@ -1497,6 +1497,10 @@ static int chip_attach(struct i2c_adapter *adap, int addr, int kind) ...@@ -1497,6 +1497,10 @@ static int chip_attach(struct i2c_adapter *adap, int addr, int kind)
static int chip_probe(struct i2c_adapter *adap) static int chip_probe(struct i2c_adapter *adap)
{ {
/* don't attach on saa7146 based cards,
because dedicated drivers are used */
if ((adap->id & I2C_ALGO_SAA7146))
return 0;
#ifdef I2C_CLASS_TV_ANALOG #ifdef I2C_CLASS_TV_ANALOG
if (adap->class & I2C_CLASS_TV_ANALOG) if (adap->class & I2C_CLASS_TV_ANALOG)
return i2c_probe(adap, &addr_data, chip_attach); return i2c_probe(adap, &addr_data, chip_attach);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment