aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci/budget-ci.c
diff options
context:
space:
mode:
authorPerceval Anichini <perceval.anichini@streamvision.fr>2006-02-28 07:52:44 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-03-08 09:36:19 -0500
commit8cc2e377a0f20f58606d8a68a423ed2ea348869d (patch)
treeaf5f33622968abc24ea0dd47e26c80d4bcf44599 /drivers/media/dvb/ttpci/budget-ci.c
parent2f27bdce972ceb97a2fd109a77546c37aa499fc9 (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/dvb/ttpci/budget-ci.c')
-rw-r--r--drivers/media/dvb/ttpci/budget-ci.c18
1 files changed, 18 insertions, 0 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
1147static struct saa7146_extension budget_extension; 1163static struct saa7146_extension budget_extension;
1148 1164
1165MAKE_BUDGET_INFO(ttbs2, "TT-Budget/S-1500 PCI", BUDGET_TT);
1149MAKE_BUDGET_INFO(ttbci, "TT-Budget/WinTV-NOVA-CI PCI", BUDGET_TT_HW_DISEQC); 1166MAKE_BUDGET_INFO(ttbci, "TT-Budget/WinTV-NOVA-CI PCI", BUDGET_TT_HW_DISEQC);
1150MAKE_BUDGET_INFO(ttbt2, "TT-Budget/WinTV-NOVA-T PCI", BUDGET_TT); 1167MAKE_BUDGET_INFO(ttbt2, "TT-Budget/WinTV-NOVA-T PCI", BUDGET_TT);
1151MAKE_BUDGET_INFO(ttbtci, "TT-Budget-T-CI PCI", BUDGET_TT); 1168MAKE_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 }