diff options
author | Konstantin Dimitrov <kosio.dimitrov@gmail.com> | 2012-12-23 17:25:38 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-27 16:27:15 -0500 |
commit | 73f0af44a9137cc2ab18e181f68f59d2ad3fe3f7 (patch) | |
tree | a4a69e8609e4d573368a2f58ea846b19b17bf1ee | |
parent | 6fef4fc71e79282b673d7613cfc63da6bdeec5bd (diff) |
[media] make the other drivers take use of the new ts2020 driver
make the other drivers take use of the separate ts2020 driver
Signed-off-by: Konstantin Dimitrov <kosio.dimitrov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb-frontends/ds3000.c | 1 | ||||
-rw-r--r-- | drivers/media/pci/cx23885/Kconfig | 1 | ||||
-rw-r--r-- | drivers/media/pci/cx23885/cx23885-dvb.c | 10 | ||||
-rw-r--r-- | drivers/media/pci/cx88/Kconfig | 2 | ||||
-rw-r--r-- | drivers/media/pci/cx88/cx88-dvb.c | 10 | ||||
-rw-r--r-- | drivers/media/pci/dm1105/Kconfig | 1 | ||||
-rw-r--r-- | drivers/media/pci/dm1105/dm1105.c | 10 | ||||
-rw-r--r-- | drivers/media/usb/dvb-usb/Kconfig | 1 | ||||
-rw-r--r-- | drivers/media/usb/dvb-usb/dw2102.c | 17 |
9 files changed, 50 insertions, 3 deletions
diff --git a/drivers/media/dvb-frontends/ds3000.c b/drivers/media/dvb-frontends/ds3000.c index cd84fbd78a5b..bc17e29b54d1 100644 --- a/drivers/media/dvb-frontends/ds3000.c +++ b/drivers/media/dvb-frontends/ds3000.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/firmware.h> | 27 | #include <linux/firmware.h> |
28 | 28 | ||
29 | #include "dvb_frontend.h" | 29 | #include "dvb_frontend.h" |
30 | #include "ts2020.h" | ||
30 | #include "ds3000.h" | 31 | #include "ds3000.h" |
31 | 32 | ||
32 | static int debug; | 33 | static int debug; |
diff --git a/drivers/media/pci/cx23885/Kconfig b/drivers/media/pci/cx23885/Kconfig index 733d6c8ebe4c..b3688aa8acc3 100644 --- a/drivers/media/pci/cx23885/Kconfig +++ b/drivers/media/pci/cx23885/Kconfig | |||
@@ -25,6 +25,7 @@ config VIDEO_CX23885 | |||
25 | select DVB_CX24116 if MEDIA_SUBDRV_AUTOSELECT | 25 | select DVB_CX24116 if MEDIA_SUBDRV_AUTOSELECT |
26 | select DVB_STV0900 if MEDIA_SUBDRV_AUTOSELECT | 26 | select DVB_STV0900 if MEDIA_SUBDRV_AUTOSELECT |
27 | select DVB_DS3000 if MEDIA_SUBDRV_AUTOSELECT | 27 | select DVB_DS3000 if MEDIA_SUBDRV_AUTOSELECT |
28 | select DVB_TS2020 if MEDIA_SUBDRV_AUTOSELECT | ||
28 | select DVB_STV0367 if MEDIA_SUBDRV_AUTOSELECT | 29 | select DVB_STV0367 if MEDIA_SUBDRV_AUTOSELECT |
29 | select DVB_TDA10071 if MEDIA_SUBDRV_AUTOSELECT | 30 | select DVB_TDA10071 if MEDIA_SUBDRV_AUTOSELECT |
30 | select DVB_A8293 if MEDIA_SUBDRV_AUTOSELECT | 31 | select DVB_A8293 if MEDIA_SUBDRV_AUTOSELECT |
diff --git a/drivers/media/pci/cx23885/cx23885-dvb.c b/drivers/media/pci/cx23885/cx23885-dvb.c index a1aae5633739..a2ed0f759b0a 100644 --- a/drivers/media/pci/cx23885/cx23885-dvb.c +++ b/drivers/media/pci/cx23885/cx23885-dvb.c | |||
@@ -57,6 +57,7 @@ | |||
57 | #include "netup-init.h" | 57 | #include "netup-init.h" |
58 | #include "lgdt3305.h" | 58 | #include "lgdt3305.h" |
59 | #include "atbm8830.h" | 59 | #include "atbm8830.h" |
60 | #include "ts2020.h" | ||
60 | #include "ds3000.h" | 61 | #include "ds3000.h" |
61 | #include "cx23885-f300.h" | 62 | #include "cx23885-f300.h" |
62 | #include "altera-ci.h" | 63 | #include "altera-ci.h" |
@@ -471,6 +472,10 @@ static struct ds3000_config tevii_ds3000_config = { | |||
471 | .demod_address = 0x68, | 472 | .demod_address = 0x68, |
472 | }; | 473 | }; |
473 | 474 | ||
475 | static struct ts2020_config tevii_ts2020_config = { | ||
476 | .tuner_address = 0x60, | ||
477 | }; | ||
478 | |||
474 | static struct cx24116_config dvbworld_cx24116_config = { | 479 | static struct cx24116_config dvbworld_cx24116_config = { |
475 | .demod_address = 0x05, | 480 | .demod_address = 0x05, |
476 | }; | 481 | }; |
@@ -1027,8 +1032,11 @@ static int dvb_register(struct cx23885_tsport *port) | |||
1027 | fe0->dvb.frontend = dvb_attach(ds3000_attach, | 1032 | fe0->dvb.frontend = dvb_attach(ds3000_attach, |
1028 | &tevii_ds3000_config, | 1033 | &tevii_ds3000_config, |
1029 | &i2c_bus->i2c_adap); | 1034 | &i2c_bus->i2c_adap); |
1030 | if (fe0->dvb.frontend != NULL) | 1035 | if (fe0->dvb.frontend != NULL) { |
1036 | dvb_attach(ts2020_attach, fe0->dvb.frontend, | ||
1037 | &tevii_ts2020_config, &i2c_bus->i2c_adap); | ||
1031 | fe0->dvb.frontend->ops.set_voltage = f300_set_voltage; | 1038 | fe0->dvb.frontend->ops.set_voltage = f300_set_voltage; |
1039 | } | ||
1032 | 1040 | ||
1033 | break; | 1041 | break; |
1034 | case CX23885_BOARD_DVBWORLD_2005: | 1042 | case CX23885_BOARD_DVBWORLD_2005: |
diff --git a/drivers/media/pci/cx88/Kconfig b/drivers/media/pci/cx88/Kconfig index d27fccbf03c4..bb05eca2da29 100644 --- a/drivers/media/pci/cx88/Kconfig +++ b/drivers/media/pci/cx88/Kconfig | |||
@@ -62,6 +62,8 @@ config VIDEO_CX88_DVB | |||
62 | select DVB_STB6000 if MEDIA_SUBDRV_AUTOSELECT | 62 | select DVB_STB6000 if MEDIA_SUBDRV_AUTOSELECT |
63 | select DVB_STV0900 if MEDIA_SUBDRV_AUTOSELECT | 63 | select DVB_STV0900 if MEDIA_SUBDRV_AUTOSELECT |
64 | select DVB_STB6100 if MEDIA_SUBDRV_AUTOSELECT | 64 | select DVB_STB6100 if MEDIA_SUBDRV_AUTOSELECT |
65 | select DVB_DS3000 if MEDIA_SUBDRV_AUTOSELECT | ||
66 | select DVB_TS2020 if MEDIA_SUBDRV_AUTOSELECT | ||
65 | select MEDIA_TUNER_SIMPLE if MEDIA_SUBDRV_AUTOSELECT | 67 | select MEDIA_TUNER_SIMPLE if MEDIA_SUBDRV_AUTOSELECT |
66 | ---help--- | 68 | ---help--- |
67 | This adds support for DVB/ATSC cards based on the | 69 | This adds support for DVB/ATSC cards based on the |
diff --git a/drivers/media/pci/cx88/cx88-dvb.c b/drivers/media/pci/cx88/cx88-dvb.c index 666f83b2f3c0..e085851d6872 100644 --- a/drivers/media/pci/cx88/cx88-dvb.c +++ b/drivers/media/pci/cx88/cx88-dvb.c | |||
@@ -58,6 +58,7 @@ | |||
58 | #include "stb6100.h" | 58 | #include "stb6100.h" |
59 | #include "stb6100_proc.h" | 59 | #include "stb6100_proc.h" |
60 | #include "mb86a16.h" | 60 | #include "mb86a16.h" |
61 | #include "ts2020.h" | ||
61 | #include "ds3000.h" | 62 | #include "ds3000.h" |
62 | 63 | ||
63 | MODULE_DESCRIPTION("driver for cx2388x based DVB cards"); | 64 | MODULE_DESCRIPTION("driver for cx2388x based DVB cards"); |
@@ -700,6 +701,10 @@ static struct ds3000_config tevii_ds3000_config = { | |||
700 | .set_ts_params = ds3000_set_ts_param, | 701 | .set_ts_params = ds3000_set_ts_param, |
701 | }; | 702 | }; |
702 | 703 | ||
704 | static struct ts2020_config tevii_ts2020_config = { | ||
705 | .tuner_address = 0x60, | ||
706 | }; | ||
707 | |||
703 | static const struct stv0900_config prof_7301_stv0900_config = { | 708 | static const struct stv0900_config prof_7301_stv0900_config = { |
704 | .demod_address = 0x6a, | 709 | .demod_address = 0x6a, |
705 | /* demod_mode = 0,*/ | 710 | /* demod_mode = 0,*/ |
@@ -1466,9 +1471,12 @@ static int dvb_register(struct cx8802_dev *dev) | |||
1466 | fe0->dvb.frontend = dvb_attach(ds3000_attach, | 1471 | fe0->dvb.frontend = dvb_attach(ds3000_attach, |
1467 | &tevii_ds3000_config, | 1472 | &tevii_ds3000_config, |
1468 | &core->i2c_adap); | 1473 | &core->i2c_adap); |
1469 | if (fe0->dvb.frontend != NULL) | 1474 | if (fe0->dvb.frontend != NULL) { |
1475 | dvb_attach(ts2020_attach, fe0->dvb.frontend, | ||
1476 | &tevii_ts2020_config, &core->i2c_adap); | ||
1470 | fe0->dvb.frontend->ops.set_voltage = | 1477 | fe0->dvb.frontend->ops.set_voltage = |
1471 | tevii_dvbs_set_voltage; | 1478 | tevii_dvbs_set_voltage; |
1479 | } | ||
1472 | break; | 1480 | break; |
1473 | case CX88_BOARD_OMICOM_SS4_PCI: | 1481 | case CX88_BOARD_OMICOM_SS4_PCI: |
1474 | case CX88_BOARD_TBS_8920: | 1482 | case CX88_BOARD_TBS_8920: |
diff --git a/drivers/media/pci/dm1105/Kconfig b/drivers/media/pci/dm1105/Kconfig index 013df4e015cd..173daf0c0847 100644 --- a/drivers/media/pci/dm1105/Kconfig +++ b/drivers/media/pci/dm1105/Kconfig | |||
@@ -8,6 +8,7 @@ config DVB_DM1105 | |||
8 | select DVB_CX24116 if MEDIA_SUBDRV_AUTOSELECT | 8 | select DVB_CX24116 if MEDIA_SUBDRV_AUTOSELECT |
9 | select DVB_SI21XX if MEDIA_SUBDRV_AUTOSELECT | 9 | select DVB_SI21XX if MEDIA_SUBDRV_AUTOSELECT |
10 | select DVB_DS3000 if MEDIA_SUBDRV_AUTOSELECT | 10 | select DVB_DS3000 if MEDIA_SUBDRV_AUTOSELECT |
11 | select DVB_TS2020 if MEDIA_SUBDRV_AUTOSELECT | ||
11 | depends on RC_CORE | 12 | depends on RC_CORE |
12 | help | 13 | help |
13 | Support for cards based on the SDMC DM1105 PCI chip like | 14 | Support for cards based on the SDMC DM1105 PCI chip like |
diff --git a/drivers/media/pci/dm1105/dm1105.c b/drivers/media/pci/dm1105/dm1105.c index f288ffcc4b6b..79fe74aae1f9 100644 --- a/drivers/media/pci/dm1105/dm1105.c +++ b/drivers/media/pci/dm1105/dm1105.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include "si21xx.h" | 45 | #include "si21xx.h" |
46 | #include "cx24116.h" | 46 | #include "cx24116.h" |
47 | #include "z0194a.h" | 47 | #include "z0194a.h" |
48 | #include "ts2020.h" | ||
48 | #include "ds3000.h" | 49 | #include "ds3000.h" |
49 | 50 | ||
50 | #define MODULE_NAME "dm1105" | 51 | #define MODULE_NAME "dm1105" |
@@ -849,6 +850,10 @@ static struct ds3000_config dvbworld_ds3000_config = { | |||
849 | .demod_address = 0x68, | 850 | .demod_address = 0x68, |
850 | }; | 851 | }; |
851 | 852 | ||
853 | static struct ts2020_config dvbworld_ts2020_config = { | ||
854 | .tuner_address = 0x60, | ||
855 | }; | ||
856 | |||
852 | static int __devinit frontend_init(struct dm1105_dev *dev) | 857 | static int __devinit frontend_init(struct dm1105_dev *dev) |
853 | { | 858 | { |
854 | int ret; | 859 | int ret; |
@@ -898,8 +903,11 @@ static int __devinit frontend_init(struct dm1105_dev *dev) | |||
898 | dev->fe = dvb_attach( | 903 | dev->fe = dvb_attach( |
899 | ds3000_attach, &dvbworld_ds3000_config, | 904 | ds3000_attach, &dvbworld_ds3000_config, |
900 | &dev->i2c_adap); | 905 | &dev->i2c_adap); |
901 | if (dev->fe) | 906 | if (dev->fe) { |
907 | dvb_attach(ts2020_attach, dev->fe, | ||
908 | &dvbworld_ts2020_config, &dev->i2c_adap); | ||
902 | dev->fe->ops.set_voltage = dm1105_set_voltage; | 909 | dev->fe->ops.set_voltage = dm1105_set_voltage; |
910 | } | ||
903 | 911 | ||
904 | break; | 912 | break; |
905 | case DM1105_BOARD_DVBWORLD_2002: | 913 | case DM1105_BOARD_DVBWORLD_2002: |
diff --git a/drivers/media/usb/dvb-usb/Kconfig b/drivers/media/usb/dvb-usb/Kconfig index fa0b2931d305..dac7204c8020 100644 --- a/drivers/media/usb/dvb-usb/Kconfig +++ b/drivers/media/usb/dvb-usb/Kconfig | |||
@@ -267,6 +267,7 @@ config DVB_USB_DW2102 | |||
267 | select DVB_MT312 if MEDIA_SUBDRV_AUTOSELECT | 267 | select DVB_MT312 if MEDIA_SUBDRV_AUTOSELECT |
268 | select DVB_ZL10039 if MEDIA_SUBDRV_AUTOSELECT | 268 | select DVB_ZL10039 if MEDIA_SUBDRV_AUTOSELECT |
269 | select DVB_DS3000 if MEDIA_SUBDRV_AUTOSELECT | 269 | select DVB_DS3000 if MEDIA_SUBDRV_AUTOSELECT |
270 | select DVB_TS2020 if MEDIA_SUBDRV_AUTOSELECT | ||
270 | select DVB_STB6100 if MEDIA_SUBDRV_AUTOSELECT | 271 | select DVB_STB6100 if MEDIA_SUBDRV_AUTOSELECT |
271 | select DVB_STV6110 if MEDIA_SUBDRV_AUTOSELECT | 272 | select DVB_STV6110 if MEDIA_SUBDRV_AUTOSELECT |
272 | select DVB_STV0900 if MEDIA_SUBDRV_AUTOSELECT | 273 | select DVB_STV0900 if MEDIA_SUBDRV_AUTOSELECT |
diff --git a/drivers/media/usb/dvb-usb/dw2102.c b/drivers/media/usb/dvb-usb/dw2102.c index 937c744217c8..f61c5e367ea1 100644 --- a/drivers/media/usb/dvb-usb/dw2102.c +++ b/drivers/media/usb/dvb-usb/dw2102.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "tda1002x.h" | 22 | #include "tda1002x.h" |
23 | #include "mt312.h" | 23 | #include "mt312.h" |
24 | #include "zl10039.h" | 24 | #include "zl10039.h" |
25 | #include "ts2020.h" | ||
25 | #include "ds3000.h" | 26 | #include "ds3000.h" |
26 | #include "stv0900.h" | 27 | #include "stv0900.h" |
27 | #include "stv6110.h" | 28 | #include "stv6110.h" |
@@ -941,6 +942,10 @@ static struct ds3000_config dw2104_ds3000_config = { | |||
941 | .demod_address = 0x68, | 942 | .demod_address = 0x68, |
942 | }; | 943 | }; |
943 | 944 | ||
945 | static struct ts2020_config dw2104_ts2020_config = { | ||
946 | .tuner_address = 0x60, | ||
947 | }; | ||
948 | |||
944 | static struct stv0900_config dw2104a_stv0900_config = { | 949 | static struct stv0900_config dw2104a_stv0900_config = { |
945 | .demod_address = 0x6a, | 950 | .demod_address = 0x6a, |
946 | .demod_mode = 0, | 951 | .demod_mode = 0, |
@@ -992,6 +997,10 @@ static struct ds3000_config su3000_ds3000_config = { | |||
992 | .ci_mode = 1, | 997 | .ci_mode = 1, |
993 | }; | 998 | }; |
994 | 999 | ||
1000 | static struct ts2020_config su3000_ts2020_config = { | ||
1001 | .tuner_address = 0x60, | ||
1002 | }; | ||
1003 | |||
995 | static int dw2104_frontend_attach(struct dvb_usb_adapter *d) | 1004 | static int dw2104_frontend_attach(struct dvb_usb_adapter *d) |
996 | { | 1005 | { |
997 | struct dvb_tuner_ops *tuner_ops = NULL; | 1006 | struct dvb_tuner_ops *tuner_ops = NULL; |
@@ -1042,6 +1051,8 @@ static int dw2104_frontend_attach(struct dvb_usb_adapter *d) | |||
1042 | d->fe_adap[0].fe = dvb_attach(ds3000_attach, &dw2104_ds3000_config, | 1051 | d->fe_adap[0].fe = dvb_attach(ds3000_attach, &dw2104_ds3000_config, |
1043 | &d->dev->i2c_adap); | 1052 | &d->dev->i2c_adap); |
1044 | if (d->fe_adap[0].fe != NULL) { | 1053 | if (d->fe_adap[0].fe != NULL) { |
1054 | dvb_attach(ts2020_attach, d->fe_adap[0].fe, | ||
1055 | &dw2104_ts2020_config, &d->dev->i2c_adap); | ||
1045 | d->fe_adap[0].fe->ops.set_voltage = dw210x_set_voltage; | 1056 | d->fe_adap[0].fe->ops.set_voltage = dw210x_set_voltage; |
1046 | info("Attached DS3000!\n"); | 1057 | info("Attached DS3000!\n"); |
1047 | return 0; | 1058 | return 0; |
@@ -1154,6 +1165,9 @@ static int ds3000_frontend_attach(struct dvb_usb_adapter *d) | |||
1154 | if (d->fe_adap[0].fe == NULL) | 1165 | if (d->fe_adap[0].fe == NULL) |
1155 | return -EIO; | 1166 | return -EIO; |
1156 | 1167 | ||
1168 | dvb_attach(ts2020_attach, d->fe_adap[0].fe, &dw2104_ts2020_config, | ||
1169 | &d->dev->i2c_adap); | ||
1170 | |||
1157 | st->old_set_voltage = d->fe_adap[0].fe->ops.set_voltage; | 1171 | st->old_set_voltage = d->fe_adap[0].fe->ops.set_voltage; |
1158 | d->fe_adap[0].fe->ops.set_voltage = s660_set_voltage; | 1172 | d->fe_adap[0].fe->ops.set_voltage = s660_set_voltage; |
1159 | 1173 | ||
@@ -1214,6 +1228,9 @@ static int su3000_frontend_attach(struct dvb_usb_adapter *d) | |||
1214 | if (d->fe_adap[0].fe == NULL) | 1228 | if (d->fe_adap[0].fe == NULL) |
1215 | return -EIO; | 1229 | return -EIO; |
1216 | 1230 | ||
1231 | dvb_attach(ts2020_attach, d->fe_adap[0].fe, &su3000_ts2020_config, | ||
1232 | &d->dev->i2c_adap); | ||
1233 | |||
1217 | info("Attached DS3000!\n"); | 1234 | info("Attached DS3000!\n"); |
1218 | 1235 | ||
1219 | return 0; | 1236 | return 0; |