patch-2.4.23 linux-2.4.23/drivers/media/video/tuner.c

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

diff -urN linux-2.4.22/drivers/media/video/tuner.c linux-2.4.23/drivers/media/video/tuner.c
@@ -847,6 +847,10 @@
 	}
 	this_adap = 0;
 
+#ifdef I2C_ADAP_CLASS_TV_ANALOG
+	if (adap->class & I2C_ADAP_CLASS_TV_ANALOG)
+		return i2c_probe(adap, &addr_data, tuner_attach);
+#else
 	switch (adap->id) {
 	case I2C_ALGO_BIT | I2C_HW_B_BT848:
 	case I2C_ALGO_BIT | I2C_HW_B_RIVA:
@@ -855,6 +859,7 @@
 		return i2c_probe(adap, &addr_data, tuner_attach);
 		break;
 	}
+#endif
 	return 0;
 }
 
@@ -893,7 +898,10 @@
                         mt2032_init(client);
 		break;
 	case AUDC_SET_RADIO:
-		t->radio = 1;
+		if (!t->radio) {
+			set_tv_freq(client,400 * 16);
+			t->radio = 1;
+		}
 		break;
 	case AUDC_CONFIG_PINNACLE:
 		switch (*iarg) {

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