diff options
author | Perceval Anichini <perceval.anichini@streamvision.fr> | 2006-02-28 07:52:44 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-08 09:36:19 -0500 |
commit | 8cc2e377a0f20f58606d8a68a423ed2ea348869d (patch) | |
tree | af5f33622968abc24ea0dd47e26c80d4bcf44599 /drivers/media | |
parent | 2f27bdce972ceb97a2fd109a77546c37aa499fc9 (diff) |
V4L/DVB (3405): TechnoTrend S-1500 card handling moved from budget.c to budget-ci.c
TechnoTrend S-1500 card handling moved from budget.c to budget-ci.c.
Signed-off-by: Perceval Anichini <perceval.anichini@streamvision.fr>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/ttpci/budget-ci.c | 18 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/budget.c | 15 |
2 files changed, 18 insertions, 15 deletions
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c index b9b3cd9c0369..09b972b9ffe3 100644 --- a/drivers/media/dvb/ttpci/budget-ci.c +++ b/drivers/media/dvb/ttpci/budget-ci.c | |||
@@ -42,6 +42,8 @@ | |||
42 | #include "stv0299.h" | 42 | #include "stv0299.h" |
43 | #include "stv0297.h" | 43 | #include "stv0297.h" |
44 | #include "tda1004x.h" | 44 | #include "tda1004x.h" |
45 | #include "lnbp21.h" | ||
46 | #include "bsbe1.h" | ||
45 | 47 | ||
46 | #define DEBIADDR_IR 0x1234 | 48 | #define DEBIADDR_IR 0x1234 |
47 | #define DEBIADDR_CICONTROL 0x0000 | 49 | #define DEBIADDR_CICONTROL 0x0000 |
@@ -1069,6 +1071,20 @@ static void frontend_init(struct budget_ci *budget_ci) | |||
1069 | break; | 1071 | break; |
1070 | } | 1072 | } |
1071 | break; | 1073 | break; |
1074 | |||
1075 | case 0x1017: // TT S-1500 PCI | ||
1076 | budget_ci->budget.dvb_frontend = stv0299_attach(&alps_bsbe1_config, &budget_ci->budget.i2c_adap); | ||
1077 | if (budget_ci->budget.dvb_frontend) { | ||
1078 | budget_ci->budget.dvb_frontend->ops->dishnetwork_send_legacy_command = NULL; | ||
1079 | if (lnbp21_init(budget_ci->budget.dvb_frontend, &budget_ci->budget.i2c_adap, LNBP21_LLC, 0)) { | ||
1080 | printk("%s: No LNBP21 found!\n", __FUNCTION__); | ||
1081 | if (budget_ci->budget.dvb_frontend->ops->release) | ||
1082 | budget_ci->budget.dvb_frontend->ops->release(budget_ci->budget.dvb_frontend); | ||
1083 | budget_ci->budget.dvb_frontend = NULL; | ||
1084 | } | ||
1085 | } | ||
1086 | |||
1087 | break; | ||
1072 | } | 1088 | } |
1073 | 1089 | ||
1074 | if (budget_ci->budget.dvb_frontend == NULL) { | 1090 | if (budget_ci->budget.dvb_frontend == NULL) { |
@@ -1146,6 +1162,7 @@ static int budget_ci_detach(struct saa7146_dev *dev) | |||
1146 | 1162 | ||
1147 | static struct saa7146_extension budget_extension; | 1163 | static struct saa7146_extension budget_extension; |
1148 | 1164 | ||
1165 | MAKE_BUDGET_INFO(ttbs2, "TT-Budget/S-1500 PCI", BUDGET_TT); | ||
1149 | MAKE_BUDGET_INFO(ttbci, "TT-Budget/WinTV-NOVA-CI PCI", BUDGET_TT_HW_DISEQC); | 1166 | MAKE_BUDGET_INFO(ttbci, "TT-Budget/WinTV-NOVA-CI PCI", BUDGET_TT_HW_DISEQC); |
1150 | MAKE_BUDGET_INFO(ttbt2, "TT-Budget/WinTV-NOVA-T PCI", BUDGET_TT); | 1167 | MAKE_BUDGET_INFO(ttbt2, "TT-Budget/WinTV-NOVA-T PCI", BUDGET_TT); |
1151 | MAKE_BUDGET_INFO(ttbtci, "TT-Budget-T-CI PCI", BUDGET_TT); | 1168 | MAKE_BUDGET_INFO(ttbtci, "TT-Budget-T-CI PCI", BUDGET_TT); |
@@ -1157,6 +1174,7 @@ static struct pci_device_id pci_tbl[] = { | |||
1157 | MAKE_EXTENSION_PCI(ttbcci, 0x13c2, 0x1010), | 1174 | MAKE_EXTENSION_PCI(ttbcci, 0x13c2, 0x1010), |
1158 | MAKE_EXTENSION_PCI(ttbt2, 0x13c2, 0x1011), | 1175 | MAKE_EXTENSION_PCI(ttbt2, 0x13c2, 0x1011), |
1159 | MAKE_EXTENSION_PCI(ttbtci, 0x13c2, 0x1012), | 1176 | MAKE_EXTENSION_PCI(ttbtci, 0x13c2, 0x1012), |
1177 | MAKE_EXTENSION_PCI(ttbs2, 0x13c2, 0x1017), | ||
1160 | { | 1178 | { |
1161 | .vendor = 0, | 1179 | .vendor = 0, |
1162 | } | 1180 | } |
diff --git a/drivers/media/dvb/ttpci/budget.c b/drivers/media/dvb/ttpci/budget.c index 2a0e3efd81c7..bfb80925019a 100644 --- a/drivers/media/dvb/ttpci/budget.c +++ b/drivers/media/dvb/ttpci/budget.c | |||
@@ -42,7 +42,6 @@ | |||
42 | #include "tda8083.h" | 42 | #include "tda8083.h" |
43 | #include "s5h1420.h" | 43 | #include "s5h1420.h" |
44 | #include "lnbp21.h" | 44 | #include "lnbp21.h" |
45 | #include "bsbe1.h" | ||
46 | 45 | ||
47 | static void Set22K (struct budget *budget, int state) | 46 | static void Set22K (struct budget *budget, int state) |
48 | { | 47 | { |
@@ -451,18 +450,6 @@ static u8 read_pwm(struct budget* budget) | |||
451 | static void frontend_init(struct budget *budget) | 450 | static void frontend_init(struct budget *budget) |
452 | { | 451 | { |
453 | switch(budget->dev->pci->subsystem_device) { | 452 | switch(budget->dev->pci->subsystem_device) { |
454 | case 0x1017: | ||
455 | // try the ALPS BSBE1 now | ||
456 | budget->dvb_frontend = stv0299_attach(&alps_bsbe1_config, &budget->i2c_adap); | ||
457 | if (budget->dvb_frontend) { | ||
458 | budget->dvb_frontend->ops->dishnetwork_send_legacy_command = NULL; | ||
459 | if (lnbp21_init(budget->dvb_frontend, &budget->i2c_adap, LNBP21_LLC, 0)) { | ||
460 | printk("%s: No LNBP21 found!\n", __FUNCTION__); | ||
461 | goto error_out; | ||
462 | } | ||
463 | } | ||
464 | |||
465 | break; | ||
466 | case 0x1003: // Hauppauge/TT Nova budget (stv0299/ALPS BSRU6(tsa5059) OR ves1893/ALPS BSRV2(sp5659)) | 453 | case 0x1003: // Hauppauge/TT Nova budget (stv0299/ALPS BSRU6(tsa5059) OR ves1893/ALPS BSRV2(sp5659)) |
467 | case 0x1013: | 454 | case 0x1013: |
468 | // try the ALPS BSRV2 first of all | 455 | // try the ALPS BSRV2 first of all |
@@ -586,7 +573,6 @@ static int budget_detach (struct saa7146_dev* dev) | |||
586 | 573 | ||
587 | static struct saa7146_extension budget_extension; | 574 | static struct saa7146_extension budget_extension; |
588 | 575 | ||
589 | MAKE_BUDGET_INFO(ttbs2, "TT-Budget/WinTV-NOVA-S PCI (rev AL/alps bsbe1 lnbp21 frontend)", BUDGET_TT); | ||
590 | MAKE_BUDGET_INFO(ttbs, "TT-Budget/WinTV-NOVA-S PCI", BUDGET_TT); | 576 | MAKE_BUDGET_INFO(ttbs, "TT-Budget/WinTV-NOVA-S PCI", BUDGET_TT); |
591 | MAKE_BUDGET_INFO(ttbc, "TT-Budget/WinTV-NOVA-C PCI", BUDGET_TT); | 577 | MAKE_BUDGET_INFO(ttbc, "TT-Budget/WinTV-NOVA-C PCI", BUDGET_TT); |
592 | MAKE_BUDGET_INFO(ttbt, "TT-Budget/WinTV-NOVA-T PCI", BUDGET_TT); | 578 | MAKE_BUDGET_INFO(ttbt, "TT-Budget/WinTV-NOVA-T PCI", BUDGET_TT); |
@@ -599,7 +585,6 @@ static struct pci_device_id pci_tbl[] = { | |||
599 | MAKE_EXTENSION_PCI(ttbc, 0x13c2, 0x1004), | 585 | MAKE_EXTENSION_PCI(ttbc, 0x13c2, 0x1004), |
600 | MAKE_EXTENSION_PCI(ttbt, 0x13c2, 0x1005), | 586 | MAKE_EXTENSION_PCI(ttbt, 0x13c2, 0x1005), |
601 | MAKE_EXTENSION_PCI(satel, 0x13c2, 0x1013), | 587 | MAKE_EXTENSION_PCI(satel, 0x13c2, 0x1013), |
602 | MAKE_EXTENSION_PCI(ttbs2, 0x13c2, 0x1017), | ||
603 | MAKE_EXTENSION_PCI(ttbs, 0x13c2, 0x1016), | 588 | MAKE_EXTENSION_PCI(ttbs, 0x13c2, 0x1016), |
604 | MAKE_EXTENSION_PCI(fsacs1,0x1131, 0x4f60), | 589 | MAKE_EXTENSION_PCI(fsacs1,0x1131, 0x4f60), |
605 | MAKE_EXTENSION_PCI(fsacs0,0x1131, 0x4f61), | 590 | MAKE_EXTENSION_PCI(fsacs0,0x1131, 0x4f61), |