patch-2.4.20 linux-2.4.20/drivers/media/video/tvmixer.c

Next file: linux-2.4.20/drivers/media/video/zoran_procfs.c
Previous file: linux-2.4.20/drivers/media/video/tvaudio.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/media/video/tvmixer.c linux-2.4.20/drivers/media/video/tvmixer.c
@@ -215,7 +215,6 @@
 	return 0;
 }
 
-
 static struct i2c_driver driver = {
 	name:            "tv card mixer driver",
         id:              I2C_DRIVERID_TVMIXER,
@@ -254,7 +253,13 @@
 	int i,minor;
 
 	/* TV card ??? */
-	if (client->adapter->id != (I2C_ALGO_BIT | I2C_HW_B_BT848)) {
+	switch (client->adapter->id) {
+	case I2C_ALGO_BIT | I2C_HW_B_BT848:
+	case I2C_ALGO_BIT | I2C_HW_B_RIVA:
+		/* ok, have a look ... */
+		break;
+	default:
+		/* ignore that one */
 		if (debug)
 			printk("tvmixer: %s is not a tv card\n",
 			       client->adapter->name);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)