patch-2.4.23 linux-2.4.23/drivers/media/video/tvaudio.c
Next file: linux-2.4.23/drivers/media/video/tvmixer.c
Previous file: linux-2.4.23/drivers/media/video/tuner.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
2003-11-28 10:26:20.000000000 -0800
- Orig file:
linux-2.4.22/drivers/media/video/tvaudio.c
- Orig date:
2003-08-25 04:44:42.000000000 -0700
diff -urN linux-2.4.22/drivers/media/video/tvaudio.c linux-2.4.23/drivers/media/video/tvaudio.c
@@ -1507,12 +1507,17 @@
static int chip_probe(struct i2c_adapter *adap)
{
+#ifdef I2C_ADAP_CLASS_TV_ANALOG
+ if (adap->class & I2C_ADAP_CLASS_TV_ANALOG)
+ return i2c_probe(adap, &addr_data, chip_attach);
+#else
switch (adap->id) {
case I2C_ALGO_BIT | I2C_HW_B_BT848:
case I2C_ALGO_BIT | I2C_HW_B_RIVA:
case I2C_ALGO_SAA7134:
return i2c_probe(adap, &addr_data, chip_attach);
}
+#endif
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)