2 * budget.c: driver for the SAA7146 based Budget DVB cards
4 * Compiled from various sources by Michael Hunold <michael@mihu.de>
6 * Copyright (C) 2002 Ralph Metzler <rjkm@metzlerbros.de>
8 * Copyright (C) 1999-2002 Ralph Metzler
9 * & Marcus Metzler for convergence integrated media GmbH
11 * 26feb2004 Support for FS Activy Card (Grundig tuner) by
12 * Michael Dreher <michael@5dot1.de>,
13 * Oliver Endriss <o.endriss@gmx.de> and
14 * Andreas 'randy' Weinberger
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License
18 * as published by the Free Software Foundation; either version 2
19 * of the License, or (at your option) any later version.
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
28 * You should have received a copy of the GNU General Public License
29 * along with this program; if not, write to the Free Software
30 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
34 * the project's page is at http://www.linuxtv.org/dvb/
45 static void Set22K (struct budget *budget, int state)
47 struct saa7146_dev *dev=budget->dev;
48 dprintk(2, "budget: %p\n", budget);
49 saa7146_setgpio(dev, 3, (state ? SAA7146_GPIO_OUTHI : SAA7146_GPIO_OUTLO));
52 /* Diseqc functions only for TT Budget card */
53 /* taken from the Skyvision DVB driver by
54 Ralph Metzler <rjkm@metzlerbros.de> */
56 static void DiseqcSendBit (struct budget *budget, int data)
58 struct saa7146_dev *dev=budget->dev;
59 dprintk(2, "budget: %p\n", budget);
61 saa7146_setgpio(dev, 3, SAA7146_GPIO_OUTHI);
62 udelay(data ? 500 : 1000);
63 saa7146_setgpio(dev, 3, SAA7146_GPIO_OUTLO);
64 udelay(data ? 1000 : 500);
67 static void DiseqcSendByte (struct budget *budget, int data)
71 dprintk(2, "budget: %p\n", budget);
73 for (i=7; i>=0; i--) {
76 DiseqcSendBit(budget, d);
79 DiseqcSendBit(budget, par);
82 static int SendDiSEqCMsg (struct budget *budget, int len, u8 *msg, unsigned long burst)
84 struct saa7146_dev *dev=budget->dev;
87 dprintk(2, "budget: %p\n", budget);
89 saa7146_setgpio(dev, 3, SAA7146_GPIO_OUTLO);
93 DiseqcSendByte(budget, msg[i]);
99 DiseqcSendByte(budget, 0xff);
101 saa7146_setgpio(dev, 3, SAA7146_GPIO_OUTHI);
103 saa7146_setgpio(dev, 3, SAA7146_GPIO_OUTLO);
112 * Routines for the Fujitsu Siemens Activy budget card
113 * 22 kHz tone and DiSEqC are handled by the frontend.
114 * Voltage must be set here.
116 static int SetVoltage_Activy (struct budget *budget, fe_sec_voltage_t voltage)
118 struct saa7146_dev *dev=budget->dev;
120 dprintk(2, "budget: %p\n", budget);
124 saa7146_setgpio(dev, 2, SAA7146_GPIO_OUTLO);
127 saa7146_setgpio(dev, 2, SAA7146_GPIO_OUTHI);
136 static int siemens_budget_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t voltage)
138 struct budget* budget = (struct budget*) fe->dvb->priv;
140 return SetVoltage_Activy (budget, voltage);
143 static int budget_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
145 struct budget* budget = (struct budget*) fe->dvb->priv;
163 static int budget_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd* cmd)
165 struct budget* budget = (struct budget*) fe->dvb->priv;
167 SendDiSEqCMsg (budget, cmd->msg_len, cmd->msg, 0);
172 static int budget_diseqc_send_burst(struct dvb_frontend* fe, fe_sec_mini_cmd_t minicmd)
174 struct budget* budget = (struct budget*) fe->dvb->priv;
176 SendDiSEqCMsg (budget, 0, NULL, minicmd);
181 static int lnbp21_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t voltage)
183 struct budget* budget = (struct budget*) fe->dvb->priv;
185 struct i2c_msg msg = { .addr = 0x08, .flags = I2C_M_RD, .buf = &buf, .len = sizeof(buf) };
187 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO;
191 buf = (buf & 0xf7) | 0x04;
195 buf = (buf & 0xf7) | 0x0c;
198 case SEC_VOLTAGE_OFF:
204 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO;
209 static int lnbp21_enable_high_lnb_voltage(struct dvb_frontend* fe, int arg)
211 struct budget* budget = (struct budget*) fe->dvb->priv;
213 struct i2c_msg msg = { .addr = 0x08, .flags = I2C_M_RD, .buf = &buf, .len = sizeof(buf) };
215 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO;
224 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO;
229 static int lnbp21_init(struct budget* budget)
232 struct i2c_msg msg = { .addr = 0x08, .flags = 0, .buf = &buf, .len = sizeof(buf) };
234 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1)
239 static int alps_bsrv2_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params)
241 struct budget* budget = (struct budget*) fe->dvb->priv;
244 struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) };
245 u32 div = (params->frequency + 479500) / 125;
247 if (params->frequency > 2000000) pwr = 3;
248 else if (params->frequency > 1800000) pwr = 2;
249 else if (params->frequency > 1600000) pwr = 1;
250 else if (params->frequency > 1200000) pwr = 0;
251 else if (params->frequency >= 1100000) pwr = 1;
254 buf[0] = (div >> 8) & 0x7f;
256 buf[2] = ((div & 0x18000) >> 10) | 0x95;
257 buf[3] = (pwr << 6) | 0x30;
259 // NOTE: since we're using a prescaler of 2, we set the
260 // divisor frequency to 62.5kHz and divide by 125 above
262 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO;
266 static struct ves1x93_config alps_bsrv2_config =
268 .demod_address = 0x08,
271 .pll_set = alps_bsrv2_pll_set,
274 static u8 alps_bsru6_inittab[] = {
278 0x04, 0x7d, /* F22FR = 0x7d, F22 = f_VCO / 128 / 0x7d = 22 kHz */
279 0x05, 0x35, /* I2CT = 0, SCLT = 1, SDAT = 1 */
280 0x06, 0x40, /* DAC not used, set to high impendance mode */
281 0x07, 0x00, /* DAC LSB */
282 0x08, 0x40, /* DiSEqC off, LNB power on OP2/LOCK pin on */
283 0x09, 0x00, /* FIFO */
284 0x0c, 0x51, /* OP1 ctl = Normal, OP1 val = 1 (LNB Power ON) */
285 0x0d, 0x82, /* DC offset compensation = ON, beta_agc1 = 2 */
286 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */
287 0x10, 0x3f, // AGC2 0x3d
290 0x15, 0xc9, // lock detector threshold
301 0x28, 0x00, // out imp: normal out type: parallel FEC mode:0
302 0x29, 0x1e, // 1/2 threshold
303 0x2a, 0x14, // 2/3 threshold
304 0x2b, 0x0f, // 3/4 threshold
305 0x2c, 0x09, // 5/6 threshold
306 0x2d, 0x05, // 7/8 threshold
308 0x31, 0x1f, // test all FECs
309 0x32, 0x19, // viterbi and synchro search
310 0x33, 0xfc, // rs control
311 0x34, 0x93, // error control
316 static int alps_bsru6_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio)
321 if (srate < 1500000) { aclk = 0xb7; bclk = 0x47; }
322 else if (srate < 3000000) { aclk = 0xb7; bclk = 0x4b; }
323 else if (srate < 7000000) { aclk = 0xb7; bclk = 0x4f; }
324 else if (srate < 14000000) { aclk = 0xb7; bclk = 0x53; }
325 else if (srate < 30000000) { aclk = 0xb6; bclk = 0x53; }
326 else if (srate < 45000000) { aclk = 0xb4; bclk = 0x51; }
328 stv0299_writereg (fe, 0x13, aclk);
329 stv0299_writereg (fe, 0x14, bclk);
330 stv0299_writereg (fe, 0x1f, (ratio >> 16) & 0xff);
331 stv0299_writereg (fe, 0x20, (ratio >> 8) & 0xff);
332 stv0299_writereg (fe, 0x21, (ratio ) & 0xf0);
337 static int alps_bsru6_pll_set(struct dvb_frontend* fe, struct i2c_adapter *i2c, struct dvb_frontend_parameters* params)
341 struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) };
343 if ((params->frequency < 950000) || (params->frequency > 2150000)) return -EINVAL;
345 div = (params->frequency + (125 - 1)) / 125; // round correctly
346 data[0] = (div >> 8) & 0x7f;
347 data[1] = div & 0xff;
348 data[2] = 0x80 | ((div & 0x18000) >> 10) | 4;
351 if (params->frequency > 1530000) data[3] = 0xc0;
353 if (i2c_transfer(i2c, &msg, 1) != 1) return -EIO;
357 static struct stv0299_config alps_bsru6_config = {
359 .demod_address = 0x68,
360 .inittab = alps_bsru6_inittab,
364 .lock_output = STV0229_LOCKOUTPUT_1,
365 .volt13_op0_op1 = STV0299_VOLT13_OP1,
367 .set_symbol_rate = alps_bsru6_set_symbol_rate,
368 .pll_set = alps_bsru6_pll_set,
371 static u8 alps_bsbe1_inittab[] = {
375 0x04, 0x7d, /* F22FR = 0x7d, F22 = f_VCO / 128 / 0x7d = 22 kHz */
376 0x05, 0x35, /* I2CT = 0, SCLT = 1, SDAT = 1 */
377 0x06, 0x40, /* DAC not used, set to high impendance mode */
378 0x07, 0x00, /* DAC LSB */
379 0x08, 0x40, /* DiSEqC off, LNB power on OP2/LOCK pin on */
380 0x09, 0x00, /* FIFO */
381 0x0c, 0x51, /* OP1 ctl = Normal, OP1 val = 1 (LNB Power ON) */
382 0x0d, 0x82, /* DC offset compensation = ON, beta_agc1 = 2 */
383 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */
384 0x10, 0x3f, // AGC2 0x3d
387 0x15, 0xc9, // lock detector threshold
398 0x28, 0x00, // out imp: normal out type: parallel FEC mode:0
399 0x29, 0x1e, // 1/2 threshold
400 0x2a, 0x14, // 2/3 threshold
401 0x2b, 0x0f, // 3/4 threshold
402 0x2c, 0x09, // 5/6 threshold
403 0x2d, 0x05, // 7/8 threshold
405 0x31, 0x1f, // test all FECs
406 0x32, 0x19, // viterbi and synchro search
407 0x33, 0xfc, // rs control
408 0x34, 0x93, // error control
409 0x0f, 0x92, // 0x80 = inverse AGC
413 static int alps_bsbe1_pll_set(struct dvb_frontend* fe, struct i2c_adapter *i2c, struct dvb_frontend_parameters* params)
418 struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) };
420 if ((params->frequency < 950000) || (params->frequency > 2150000))
423 div = (params->frequency + (125 - 1)) / 125; // round correctly
424 data[0] = (div >> 8) & 0x7f;
425 data[1] = div & 0xff;
426 data[2] = 0x80 | ((div & 0x18000) >> 10) | 4;
427 data[3] = (params->frequency > 1530000) ? 0xE0 : 0xE4;
429 ret = i2c_transfer(i2c, &msg, 1);
430 return (ret != 1) ? -EIO : 0;
433 static struct stv0299_config alps_bsbe1_config = {
434 .demod_address = 0x68,
435 .inittab = alps_bsbe1_inittab,
440 .set_symbol_rate = alps_bsru6_set_symbol_rate,
441 .pll_set = alps_bsbe1_pll_set,
444 static int alps_tdbe2_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params)
446 struct budget* budget = (struct budget*) fe->dvb->priv;
449 struct i2c_msg msg = { .addr = 0x62, .flags = 0, .buf = data, .len = sizeof(data) };
451 div = (params->frequency + 35937500 + 31250) / 62500;
453 data[0] = (div >> 8) & 0x7f;
454 data[1] = div & 0xff;
455 data[2] = 0x85 | ((div >> 10) & 0x60);
456 data[3] = (params->frequency < 174000000 ? 0x88 : params->frequency < 470000000 ? 0x84 : 0x81);
458 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO;
462 static struct ves1820_config alps_tdbe2_config = {
463 .demod_address = 0x09,
466 .selagc = VES1820_SELAGC_SIGNAMPERR,
467 .pll_set = alps_tdbe2_pll_set,
470 static int grundig_29504_401_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params)
472 struct budget* budget = (struct budget*) fe->dvb->priv;
474 u8 cfg, cpump, band_select;
476 struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) };
478 div = (36125000 + params->frequency) / 166666;
482 if (params->frequency < 175000000) cpump = 2;
483 else if (params->frequency < 390000000) cpump = 1;
484 else if (params->frequency < 470000000) cpump = 2;
485 else if (params->frequency < 750000000) cpump = 1;
488 if (params->frequency < 175000000) band_select = 0x0e;
489 else if (params->frequency < 470000000) band_select = 0x05;
490 else band_select = 0x03;
492 data[0] = (div >> 8) & 0x7f;
493 data[1] = div & 0xff;
494 data[2] = ((div >> 10) & 0x60) | cfg;
495 data[3] = (cpump << 6) | band_select;
497 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO;
501 static struct l64781_config grundig_29504_401_config = {
502 .demod_address = 0x55,
503 .pll_set = grundig_29504_401_pll_set,
506 static int grundig_29504_451_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params)
508 struct budget* budget = (struct budget*) fe->dvb->priv;
511 struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) };
513 div = params->frequency / 125;
514 data[0] = (div >> 8) & 0x7f;
515 data[1] = div & 0xff;
519 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO;
523 static struct tda8083_config grundig_29504_451_config = {
524 .demod_address = 0x68,
525 .pll_set = grundig_29504_451_pll_set,
528 static int s5h1420_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u32* freqout)
530 struct budget* budget = (struct budget*) fe->dvb->priv;
533 struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) };
535 div = params->frequency / 1000;
536 data[0] = (div >> 8) & 0x7f;
537 data[1] = div & 0xff;
549 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO;
551 *freqout = div * 1000;
555 static struct s5h1420_config s5h1420_config = {
556 .demod_address = 0x53,
558 .pll_set = s5h1420_pll_set,
561 static u8 read_pwm(struct budget* budget)
565 struct i2c_msg msg[] = { { .addr = 0x50,.flags = 0,.buf = &b,.len = 1 },
566 { .addr = 0x50,.flags = I2C_M_RD,.buf = &pwm,.len = 1} };
568 if ((i2c_transfer(&budget->i2c_adap, msg, 2) != 2) || (pwm == 0xff))
574 static void frontend_init(struct budget *budget)
576 switch(budget->dev->pci->subsystem_device) {
578 // try the ALPS BSBE1 now
579 budget->dvb_frontend = stv0299_attach(&alps_bsbe1_config, &budget->i2c_adap);
580 if (budget->dvb_frontend) {
581 budget->dvb_frontend->ops->set_voltage = lnbp21_set_voltage;
582 budget->dvb_frontend->ops->enable_high_lnb_voltage = lnbp21_enable_high_lnb_voltage;
583 if (lnbp21_init(budget)) {
584 printk("%s: No LNBP21 found!\n", __FUNCTION__);
590 case 0x1003: // Hauppauge/TT Nova budget (stv0299/ALPS BSRU6(tsa5059) OR ves1893/ALPS BSRV2(sp5659))
592 // try the ALPS BSRV2 first of all
593 budget->dvb_frontend = ves1x93_attach(&alps_bsrv2_config, &budget->i2c_adap);
594 if (budget->dvb_frontend) {
595 budget->dvb_frontend->ops->diseqc_send_master_cmd = budget_diseqc_send_master_cmd;
596 budget->dvb_frontend->ops->diseqc_send_burst = budget_diseqc_send_burst;
597 budget->dvb_frontend->ops->set_tone = budget_set_tone;
601 // try the ALPS BSRU6 now
602 budget->dvb_frontend = stv0299_attach(&alps_bsru6_config, &budget->i2c_adap);
603 if (budget->dvb_frontend) {
604 budget->dvb_frontend->ops->diseqc_send_master_cmd = budget_diseqc_send_master_cmd;
605 budget->dvb_frontend->ops->diseqc_send_burst = budget_diseqc_send_burst;
606 budget->dvb_frontend->ops->set_tone = budget_set_tone;
611 case 0x1004: // Hauppauge/TT DVB-C budget (ves1820/ALPS TDBE2(sp5659))
613 budget->dvb_frontend = ves1820_attach(&alps_tdbe2_config, &budget->i2c_adap, read_pwm(budget));
614 if (budget->dvb_frontend) break;
617 case 0x1005: // Hauppauge/TT Nova-T budget (L64781/Grundig 29504-401(tsa5060))
619 budget->dvb_frontend = l64781_attach(&grundig_29504_401_config, &budget->i2c_adap);
620 if (budget->dvb_frontend) break;
623 case 0x4f60: // Fujitsu Siemens Activy Budget-S PCI rev AL (stv0299/ALPS BSRU6(tsa5059))
624 budget->dvb_frontend = stv0299_attach(&alps_bsru6_config, &budget->i2c_adap);
625 if (budget->dvb_frontend) {
626 budget->dvb_frontend->ops->set_voltage = siemens_budget_set_voltage;
631 case 0x4f61: // Fujitsu Siemens Activy Budget-S PCI rev GR (tda8083/Grundig 29504-451(tsa5522))
632 budget->dvb_frontend = tda8083_attach(&grundig_29504_451_config, &budget->i2c_adap);
633 if (budget->dvb_frontend) {
634 budget->dvb_frontend->ops->set_voltage = siemens_budget_set_voltage;
639 case 0x1016: // Hauppauge/TT Nova-S SE (samsung s5h1420/????(tda8260))
640 budget->dvb_frontend = s5h1420_attach(&s5h1420_config, &budget->i2c_adap);
641 if (budget->dvb_frontend) {
642 budget->dvb_frontend->ops->set_voltage = lnbp21_set_voltage;
643 budget->dvb_frontend->ops->enable_high_lnb_voltage = lnbp21_enable_high_lnb_voltage;
644 if (lnbp21_init(budget)) {
645 printk("%s: No LNBP21 found!\n", __FUNCTION__);
652 if (budget->dvb_frontend == NULL) {
653 printk("budget: A frontend driver was not found for device %04x/%04x subsystem %04x/%04x\n",
654 budget->dev->pci->vendor,
655 budget->dev->pci->device,
656 budget->dev->pci->subsystem_vendor,
657 budget->dev->pci->subsystem_device);
659 if (dvb_register_frontend(&budget->dvb_adapter, budget->dvb_frontend))
665 printk("budget: Frontend registration failed!\n");
666 if (budget->dvb_frontend->ops->release)
667 budget->dvb_frontend->ops->release(budget->dvb_frontend);
668 budget->dvb_frontend = NULL;
672 static int budget_attach (struct saa7146_dev* dev, struct saa7146_pci_extension_data *info)
674 struct budget *budget = NULL;
677 budget = kmalloc(sizeof(struct budget), GFP_KERNEL);
678 if( NULL == budget ) {
682 dprintk(2, "dev:%p, info:%p, budget:%p\n", dev, info, budget);
684 dev->ext_priv = budget;
686 if ((err = ttpci_budget_init (budget, dev, info, THIS_MODULE))) {
687 printk("==> failed\n");
692 budget->dvb_adapter.priv = budget;
693 frontend_init(budget);
698 static int budget_detach (struct saa7146_dev* dev)
700 struct budget *budget = (struct budget*) dev->ext_priv;
703 if (budget->dvb_frontend) dvb_unregister_frontend(budget->dvb_frontend);
705 err = ttpci_budget_deinit (budget);
708 dev->ext_priv = NULL;
713 static struct saa7146_extension budget_extension;
715 MAKE_BUDGET_INFO(ttbs2, "TT-Budget/WinTV-NOVA-S PCI (rev AL/alps bsbe1 lnbp21 frontend)", BUDGET_TT);
716 MAKE_BUDGET_INFO(ttbs, "TT-Budget/WinTV-NOVA-S PCI", BUDGET_TT);
717 MAKE_BUDGET_INFO(ttbc, "TT-Budget/WinTV-NOVA-C PCI", BUDGET_TT);
718 MAKE_BUDGET_INFO(ttbt, "TT-Budget/WinTV-NOVA-T PCI", BUDGET_TT);
719 MAKE_BUDGET_INFO(satel, "SATELCO Multimedia PCI", BUDGET_TT_HW_DISEQC);
720 MAKE_BUDGET_INFO(fsacs0, "Fujitsu Siemens Activy Budget-S PCI (rev GR/grundig frontend)", BUDGET_FS_ACTIVY);
721 MAKE_BUDGET_INFO(fsacs1, "Fujitsu Siemens Activy Budget-S PCI (rev AL/alps frontend)", BUDGET_FS_ACTIVY);
723 static struct pci_device_id pci_tbl[] = {
724 MAKE_EXTENSION_PCI(ttbs, 0x13c2, 0x1003),
725 MAKE_EXTENSION_PCI(ttbc, 0x13c2, 0x1004),
726 MAKE_EXTENSION_PCI(ttbt, 0x13c2, 0x1005),
727 MAKE_EXTENSION_PCI(satel, 0x13c2, 0x1013),
728 MAKE_EXTENSION_PCI(ttbs2, 0x13c2, 0x1017),
729 MAKE_EXTENSION_PCI(ttbs, 0x13c2, 0x1016),
730 MAKE_EXTENSION_PCI(fsacs1,0x1131, 0x4f60),
731 MAKE_EXTENSION_PCI(fsacs0,0x1131, 0x4f61),
737 MODULE_DEVICE_TABLE(pci, pci_tbl);
739 static struct saa7146_extension budget_extension = {
740 .name = "budget dvb\0",
743 .module = THIS_MODULE,
745 .attach = budget_attach,
746 .detach = budget_detach,
749 .irq_func = ttpci_budget_irq10_handler,
752 static int __init budget_init(void)
754 return saa7146_register_extension(&budget_extension);
757 static void __exit budget_exit(void)
759 saa7146_unregister_extension(&budget_extension);
762 module_init(budget_init);
763 module_exit(budget_exit);
765 MODULE_LICENSE("GPL");
766 MODULE_AUTHOR("Ralph Metzler, Marcus Metzler, Michael Hunold, others");
767 MODULE_DESCRIPTION("driver for the SAA7146 based so-called "
768 "budget PCI DVB cards by Siemens, Technotrend, Hauppauge");