2 DVB device driver for cx231xx
4 Copyright (C) 2008 <srinivasa.deevi at conexant dot com>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <linux/kernel.h>
23 #include <linux/slab.h>
24 #include <linux/usb.h>
27 #include <media/v4l2-common.h>
28 #include <media/videobuf-vmalloc.h>
37 MODULE_DESCRIPTION("driver for cx231xx based DVB cards");
38 MODULE_AUTHOR("Srinivasa Deevi <srinivasa.deevi@conexant.com>");
39 MODULE_LICENSE("GPL");
41 static unsigned int debug
;
42 module_param(debug
, int, 0644);
43 MODULE_PARM_DESC(debug
, "enable debug messages [dvb]");
45 DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr
);
47 #define dprintk(level, fmt, arg...) do { \
49 printk(KERN_DEBUG "%s/2-dvb: " fmt, dev->name, ## arg); \
52 #define CX231XX_DVB_NUM_BUFS 5
53 #define CX231XX_DVB_MAX_PACKETSIZE 564
54 #define CX231XX_DVB_MAX_PACKETS 64
57 struct dvb_frontend
*frontend
;
59 /* feed count management */
63 /* general boilerplate stuff */
64 struct dvb_adapter adapter
;
65 struct dvb_demux demux
;
67 struct dmx_frontend fe_hw
;
68 struct dmx_frontend fe_mem
;
72 static struct s5h1432_config dvico_s5h1432_config
= {
73 .output_mode
= S5H1432_SERIAL_OUTPUT
,
74 .gpio
= S5H1432_GPIO_ON
,
75 .qam_if
= S5H1432_IF_4000
,
76 .vsb_if
= S5H1432_IF_4000
,
77 .inversion
= S5H1432_INVERSION_OFF
,
78 .status_mode
= S5H1432_DEMODLOCKING
,
79 .mpeg_timing
= S5H1432_MPEGTIMING_CONTINOUS_NONINVERTING_CLOCK
,
82 static struct tda18271_std_map cnxt_rde253s_tda18271_std_map
= {
83 .dvbt_6
= { .if_freq
= 4000, .agc_mode
= 3, .std
= 4,
84 .if_lvl
= 1, .rfagc_top
= 0x37, },
85 .dvbt_7
= { .if_freq
= 4000, .agc_mode
= 3, .std
= 5,
86 .if_lvl
= 1, .rfagc_top
= 0x37, },
87 .dvbt_8
= { .if_freq
= 4000, .agc_mode
= 3, .std
= 6,
88 .if_lvl
= 1, .rfagc_top
= 0x37, },
91 static struct tda18271_std_map mb86a20s_tda18271_config
= {
92 .dvbt_6
= { .if_freq
= 4000, .agc_mode
= 3, .std
= 4,
93 .if_lvl
= 0, .rfagc_top
= 0x37, },
96 static struct tda18271_config cnxt_rde253s_tunerconfig
= {
97 .std_map
= &cnxt_rde253s_tda18271_std_map
,
98 .gate
= TDA18271_GATE_ANALOG
,
101 static struct s5h1411_config tda18271_s5h1411_config
= {
102 .output_mode
= S5H1411_SERIAL_OUTPUT
,
103 .gpio
= S5H1411_GPIO_OFF
,
104 .vsb_if
= S5H1411_IF_3250
,
105 .qam_if
= S5H1411_IF_4000
,
106 .inversion
= S5H1411_INVERSION_ON
,
107 .status_mode
= S5H1411_DEMODLOCKING
,
108 .mpeg_timing
= S5H1411_MPEGTIMING_CONTINOUS_NONINVERTING_CLOCK
,
110 static struct s5h1411_config xc5000_s5h1411_config
= {
111 .output_mode
= S5H1411_SERIAL_OUTPUT
,
112 .gpio
= S5H1411_GPIO_OFF
,
113 .vsb_if
= S5H1411_IF_3250
,
114 .qam_if
= S5H1411_IF_3250
,
115 .inversion
= S5H1411_INVERSION_OFF
,
116 .status_mode
= S5H1411_DEMODLOCKING
,
117 .mpeg_timing
= S5H1411_MPEGTIMING_CONTINOUS_NONINVERTING_CLOCK
,
120 static struct lgdt3305_config hcw_lgdt3305_config
= {
122 .mpeg_mode
= LGDT3305_MPEG_SERIAL
,
123 .tpclk_edge
= LGDT3305_TPCLK_FALLING_EDGE
,
124 .tpvalid_polarity
= LGDT3305_TP_VALID_HIGH
,
126 .spectral_inversion
= 1,
131 static struct tda18271_std_map hauppauge_tda18271_std_map
= {
132 .atsc_6
= { .if_freq
= 3250, .agc_mode
= 3, .std
= 4,
133 .if_lvl
= 1, .rfagc_top
= 0x58, },
134 .qam_6
= { .if_freq
= 4000, .agc_mode
= 3, .std
= 5,
135 .if_lvl
= 1, .rfagc_top
= 0x58, },
138 static struct tda18271_config hcw_tda18271_config
= {
139 .std_map
= &hauppauge_tda18271_std_map
,
140 .gate
= TDA18271_GATE_DIGITAL
,
143 static const struct mb86a20s_config pv_mb86a20s_config
= {
144 .demod_address
= 0x10,
148 static struct tda18271_config pv_tda18271_config
= {
149 .std_map
= &mb86a20s_tda18271_config
,
150 .gate
= TDA18271_GATE_DIGITAL
,
151 .small_i2c
= TDA18271_03_BYTE_CHUNK_INIT
,
154 static inline void print_err_status(struct cx231xx
*dev
, int packet
, int status
)
156 char *errmsg
= "Unknown";
160 errmsg
= "unlinked synchronuously";
163 errmsg
= "unlinked asynchronuously";
166 errmsg
= "Buffer error (overrun)";
169 errmsg
= "Stalled (device not responding)";
172 errmsg
= "Babble (bad cable?)";
175 errmsg
= "Bit-stuff error (bad cable?)";
178 errmsg
= "CRC/Timeout (could be anything)";
181 errmsg
= "Device does not respond";
185 dprintk(1, "URB status %d [%s].\n", status
, errmsg
);
187 dprintk(1, "URB packet %d, status %d [%s].\n",
188 packet
, status
, errmsg
);
192 static inline int dvb_isoc_copy(struct cx231xx
*dev
, struct urb
*urb
)
199 if (dev
->state
& DEV_DISCONNECTED
)
202 if (urb
->status
< 0) {
203 print_err_status(dev
, -1, urb
->status
);
204 if (urb
->status
== -ENOENT
)
208 for (i
= 0; i
< urb
->number_of_packets
; i
++) {
209 int status
= urb
->iso_frame_desc
[i
].status
;
212 print_err_status(dev
, i
, status
);
213 if (urb
->iso_frame_desc
[i
].status
!= -EPROTO
)
217 dvb_dmx_swfilter(&dev
->dvb
->demux
,
218 urb
->transfer_buffer
+
219 urb
->iso_frame_desc
[i
].offset
,
220 urb
->iso_frame_desc
[i
].actual_length
);
226 static inline int dvb_bulk_copy(struct cx231xx
*dev
, struct urb
*urb
)
231 if (dev
->state
& DEV_DISCONNECTED
)
234 if (urb
->status
< 0) {
235 print_err_status(dev
, -1, urb
->status
);
236 if (urb
->status
== -ENOENT
)
240 /* Feed the transport payload into the kernel demux */
241 dvb_dmx_swfilter(&dev
->dvb
->demux
,
242 urb
->transfer_buffer
, urb
->actual_length
);
247 static int start_streaming(struct cx231xx_dvb
*dvb
)
250 struct cx231xx
*dev
= dvb
->adapter
.priv
;
253 cx231xx_info("DVB transfer mode is ISO.\n");
254 mutex_lock(&dev
->i2c_lock
);
255 cx231xx_enable_i2c_port_3(dev
, false);
256 cx231xx_set_alt_setting(dev
, INDEX_TS1
, 4);
257 cx231xx_enable_i2c_port_3(dev
, true);
258 mutex_unlock(&dev
->i2c_lock
);
259 rc
= cx231xx_set_mode(dev
, CX231XX_DIGITAL_MODE
);
263 return cx231xx_init_isoc(dev
, CX231XX_DVB_MAX_PACKETS
,
264 CX231XX_DVB_NUM_BUFS
,
265 dev
->ts1_mode
.max_pkt_size
,
268 cx231xx_info("DVB transfer mode is BULK.\n");
269 cx231xx_set_alt_setting(dev
, INDEX_TS1
, 0);
270 rc
= cx231xx_set_mode(dev
, CX231XX_DIGITAL_MODE
);
274 return cx231xx_init_bulk(dev
, CX231XX_DVB_MAX_PACKETS
,
275 CX231XX_DVB_NUM_BUFS
,
276 dev
->ts1_mode
.max_pkt_size
,
282 static int stop_streaming(struct cx231xx_dvb
*dvb
)
284 struct cx231xx
*dev
= dvb
->adapter
.priv
;
287 cx231xx_uninit_isoc(dev
);
289 cx231xx_uninit_bulk(dev
);
291 cx231xx_set_mode(dev
, CX231XX_SUSPEND
);
296 static int start_feed(struct dvb_demux_feed
*feed
)
298 struct dvb_demux
*demux
= feed
->demux
;
299 struct cx231xx_dvb
*dvb
= demux
->priv
;
302 if (!demux
->dmx
.frontend
)
305 mutex_lock(&dvb
->lock
);
309 if (dvb
->nfeeds
== 1) {
310 ret
= start_streaming(dvb
);
315 mutex_unlock(&dvb
->lock
);
319 static int stop_feed(struct dvb_demux_feed
*feed
)
321 struct dvb_demux
*demux
= feed
->demux
;
322 struct cx231xx_dvb
*dvb
= demux
->priv
;
325 mutex_lock(&dvb
->lock
);
328 if (0 == dvb
->nfeeds
)
329 err
= stop_streaming(dvb
);
331 mutex_unlock(&dvb
->lock
);
335 /* ------------------------------------------------------------------ */
336 static int cx231xx_dvb_bus_ctrl(struct dvb_frontend
*fe
, int acquire
)
338 struct cx231xx
*dev
= fe
->dvb
->priv
;
341 return cx231xx_set_mode(dev
, CX231XX_DIGITAL_MODE
);
343 return cx231xx_set_mode(dev
, CX231XX_SUSPEND
);
346 /* ------------------------------------------------------------------ */
348 static struct xc5000_config cnxt_rde250_tunerconfig
= {
352 static struct xc5000_config cnxt_rdu250_tunerconfig
= {
357 /* ------------------------------------------------------------------ */
359 static int attach_xc5000(u8 addr
, struct cx231xx
*dev
)
362 struct dvb_frontend
*fe
;
363 struct xc5000_config cfg
;
365 memset(&cfg
, 0, sizeof(cfg
));
366 cfg
.i2c_adap
= &dev
->i2c_bus
[dev
->board
.tuner_i2c_master
].i2c_adap
;
369 if (!dev
->dvb
->frontend
) {
370 printk(KERN_ERR
"%s/2: dvb frontend not attached. "
371 "Can't attach xc5000\n", dev
->name
);
375 fe
= dvb_attach(xc5000_attach
, dev
->dvb
->frontend
, &cfg
);
377 printk(KERN_ERR
"%s/2: xc5000 attach failed\n", dev
->name
);
378 dvb_frontend_detach(dev
->dvb
->frontend
);
379 dev
->dvb
->frontend
= NULL
;
383 printk(KERN_INFO
"%s/2: xc5000 attached\n", dev
->name
);
389 int cx231xx_set_analog_freq(struct cx231xx
*dev
, u32 freq
)
393 if ((dev
->dvb
!= NULL
) && (dev
->dvb
->frontend
!= NULL
)) {
395 struct dvb_tuner_ops
*dops
= &dev
->dvb
->frontend
->ops
.tuner_ops
;
397 if (dops
->set_analog_params
!= NULL
) {
398 struct analog_parameters params
;
400 params
.frequency
= freq
;
401 params
.std
= dev
->norm
;
402 params
.mode
= 0; /* 0- Air; 1 - cable */
403 /*params.audmode = ; */
405 /* Set the analog parameters to set the frequency */
406 dops
->set_analog_params(dev
->dvb
->frontend
, ¶ms
);
414 int cx231xx_reset_analog_tuner(struct cx231xx
*dev
)
418 if ((dev
->dvb
!= NULL
) && (dev
->dvb
->frontend
!= NULL
)) {
420 struct dvb_tuner_ops
*dops
= &dev
->dvb
->frontend
->ops
.tuner_ops
;
422 if (dops
->init
!= NULL
&& !dev
->xc_fw_load_done
) {
424 cx231xx_info("Reloading firmware for XC5000\n");
425 status
= dops
->init(dev
->dvb
->frontend
);
427 dev
->xc_fw_load_done
= 1;
429 ("XC5000 firmware download completed\n");
431 dev
->xc_fw_load_done
= 0;
433 ("XC5000 firmware download failed !!!\n");
442 /* ------------------------------------------------------------------ */
444 static int register_dvb(struct cx231xx_dvb
*dvb
,
445 struct module
*module
,
446 struct cx231xx
*dev
, struct device
*device
)
450 mutex_init(&dvb
->lock
);
452 /* register adapter */
453 result
= dvb_register_adapter(&dvb
->adapter
, dev
->name
, module
, device
,
457 "%s: dvb_register_adapter failed (errno = %d)\n",
462 /* Ensure all frontends negotiate bus access */
463 dvb
->frontend
->ops
.ts_bus_ctrl
= cx231xx_dvb_bus_ctrl
;
465 dvb
->adapter
.priv
= dev
;
467 /* register frontend */
468 result
= dvb_register_frontend(&dvb
->adapter
, dvb
->frontend
);
471 "%s: dvb_register_frontend failed (errno = %d)\n",
476 /* register demux stuff */
477 dvb
->demux
.dmx
.capabilities
=
478 DMX_TS_FILTERING
| DMX_SECTION_FILTERING
|
479 DMX_MEMORY_BASED_FILTERING
;
480 dvb
->demux
.priv
= dvb
;
481 dvb
->demux
.filternum
= 256;
482 dvb
->demux
.feednum
= 256;
483 dvb
->demux
.start_feed
= start_feed
;
484 dvb
->demux
.stop_feed
= stop_feed
;
486 result
= dvb_dmx_init(&dvb
->demux
);
488 printk(KERN_WARNING
"%s: dvb_dmx_init failed (errno = %d)\n",
493 dvb
->dmxdev
.filternum
= 256;
494 dvb
->dmxdev
.demux
= &dvb
->demux
.dmx
;
495 dvb
->dmxdev
.capabilities
= 0;
496 result
= dvb_dmxdev_init(&dvb
->dmxdev
, &dvb
->adapter
);
498 printk(KERN_WARNING
"%s: dvb_dmxdev_init failed (errno = %d)\n",
503 dvb
->fe_hw
.source
= DMX_FRONTEND_0
;
504 result
= dvb
->demux
.dmx
.add_frontend(&dvb
->demux
.dmx
, &dvb
->fe_hw
);
507 "%s: add_frontend failed (DMX_FRONTEND_0, errno = %d)\n",
512 dvb
->fe_mem
.source
= DMX_MEMORY_FE
;
513 result
= dvb
->demux
.dmx
.add_frontend(&dvb
->demux
.dmx
, &dvb
->fe_mem
);
516 "%s: add_frontend failed (DMX_MEMORY_FE, errno = %d)\n",
521 result
= dvb
->demux
.dmx
.connect_frontend(&dvb
->demux
.dmx
, &dvb
->fe_hw
);
524 "%s: connect_frontend failed (errno = %d)\n", dev
->name
,
529 /* register network adapter */
530 dvb_net_init(&dvb
->adapter
, &dvb
->net
, &dvb
->demux
.dmx
);
534 dvb
->demux
.dmx
.remove_frontend(&dvb
->demux
.dmx
, &dvb
->fe_mem
);
536 dvb
->demux
.dmx
.remove_frontend(&dvb
->demux
.dmx
, &dvb
->fe_hw
);
538 dvb_dmxdev_release(&dvb
->dmxdev
);
540 dvb_dmx_release(&dvb
->demux
);
542 dvb_unregister_frontend(dvb
->frontend
);
544 dvb_frontend_detach(dvb
->frontend
);
545 dvb_unregister_adapter(&dvb
->adapter
);
550 static void unregister_dvb(struct cx231xx_dvb
*dvb
)
552 dvb_net_release(&dvb
->net
);
553 dvb
->demux
.dmx
.remove_frontend(&dvb
->demux
.dmx
, &dvb
->fe_mem
);
554 dvb
->demux
.dmx
.remove_frontend(&dvb
->demux
.dmx
, &dvb
->fe_hw
);
555 dvb_dmxdev_release(&dvb
->dmxdev
);
556 dvb_dmx_release(&dvb
->demux
);
557 dvb_unregister_frontend(dvb
->frontend
);
558 dvb_frontend_detach(dvb
->frontend
);
559 dvb_unregister_adapter(&dvb
->adapter
);
562 static int dvb_init(struct cx231xx
*dev
)
565 struct cx231xx_dvb
*dvb
;
567 if (!dev
->board
.has_dvb
) {
568 /* This device does not support the extension */
572 dvb
= kzalloc(sizeof(struct cx231xx_dvb
), GFP_KERNEL
);
575 printk(KERN_INFO
"cx231xx_dvb: memory allocation failed\n");
579 dev
->cx231xx_set_analog_freq
= cx231xx_set_analog_freq
;
580 dev
->cx231xx_reset_analog_tuner
= cx231xx_reset_analog_tuner
;
582 mutex_lock(&dev
->lock
);
583 cx231xx_set_mode(dev
, CX231XX_DIGITAL_MODE
);
584 cx231xx_demod_reset(dev
);
586 switch (dev
->model
) {
587 case CX231XX_BOARD_CNXT_CARRAERA
:
588 case CX231XX_BOARD_CNXT_RDE_250
:
590 dev
->dvb
->frontend
= dvb_attach(s5h1432_attach
,
591 &dvico_s5h1432_config
,
592 &dev
->i2c_bus
[dev
->board
.demod_i2c_master
].i2c_adap
);
594 if (dev
->dvb
->frontend
== NULL
) {
596 ": Failed to attach s5h1432 front end\n");
601 /* define general-purpose callback pointer */
602 dvb
->frontend
->callback
= cx231xx_tuner_callback
;
604 if (!dvb_attach(xc5000_attach
, dev
->dvb
->frontend
,
605 &dev
->i2c_bus
[dev
->board
.tuner_i2c_master
].i2c_adap
,
606 &cnxt_rde250_tunerconfig
)) {
612 case CX231XX_BOARD_CNXT_SHELBY
:
613 case CX231XX_BOARD_CNXT_RDU_250
:
615 dev
->dvb
->frontend
= dvb_attach(s5h1411_attach
,
616 &xc5000_s5h1411_config
,
617 &dev
->i2c_bus
[dev
->board
.demod_i2c_master
].i2c_adap
);
619 if (dev
->dvb
->frontend
== NULL
) {
621 ": Failed to attach s5h1411 front end\n");
626 /* define general-purpose callback pointer */
627 dvb
->frontend
->callback
= cx231xx_tuner_callback
;
629 if (!dvb_attach(xc5000_attach
, dev
->dvb
->frontend
,
630 &dev
->i2c_bus
[dev
->board
.tuner_i2c_master
].i2c_adap
,
631 &cnxt_rdu250_tunerconfig
)) {
636 case CX231XX_BOARD_CNXT_RDE_253S
:
638 dev
->dvb
->frontend
= dvb_attach(s5h1432_attach
,
639 &dvico_s5h1432_config
,
640 &dev
->i2c_bus
[dev
->board
.demod_i2c_master
].i2c_adap
);
642 if (dev
->dvb
->frontend
== NULL
) {
644 ": Failed to attach s5h1432 front end\n");
649 /* define general-purpose callback pointer */
650 dvb
->frontend
->callback
= cx231xx_tuner_callback
;
652 if (!dvb_attach(tda18271_attach
, dev
->dvb
->frontend
,
653 0x60, &dev
->i2c_bus
[dev
->board
.tuner_i2c_master
].i2c_adap
,
654 &cnxt_rde253s_tunerconfig
)) {
659 case CX231XX_BOARD_CNXT_RDU_253S
:
660 case CX231XX_BOARD_KWORLD_UB445_USB_HYBRID
:
662 dev
->dvb
->frontend
= dvb_attach(s5h1411_attach
,
663 &tda18271_s5h1411_config
,
664 &dev
->i2c_bus
[dev
->board
.demod_i2c_master
].i2c_adap
);
666 if (dev
->dvb
->frontend
== NULL
) {
668 ": Failed to attach s5h1411 front end\n");
673 /* define general-purpose callback pointer */
674 dvb
->frontend
->callback
= cx231xx_tuner_callback
;
676 if (!dvb_attach(tda18271_attach
, dev
->dvb
->frontend
,
677 0x60, &dev
->i2c_bus
[dev
->board
.tuner_i2c_master
].i2c_adap
,
678 &cnxt_rde253s_tunerconfig
)) {
683 case CX231XX_BOARD_HAUPPAUGE_EXETER
:
685 printk(KERN_INFO
"%s: looking for tuner / demod on i2c bus: %d\n",
686 __func__
, i2c_adapter_id(&dev
->i2c_bus
[dev
->board
.tuner_i2c_master
].i2c_adap
));
688 dev
->dvb
->frontend
= dvb_attach(lgdt3305_attach
,
689 &hcw_lgdt3305_config
,
690 &dev
->i2c_bus
[dev
->board
.tuner_i2c_master
].i2c_adap
);
692 if (dev
->dvb
->frontend
== NULL
) {
694 ": Failed to attach LG3305 front end\n");
699 /* define general-purpose callback pointer */
700 dvb
->frontend
->callback
= cx231xx_tuner_callback
;
702 dvb_attach(tda18271_attach
, dev
->dvb
->frontend
,
703 0x60, &dev
->i2c_bus
[dev
->board
.tuner_i2c_master
].i2c_adap
,
704 &hcw_tda18271_config
);
707 case CX231XX_BOARD_PV_PLAYTV_USB_HYBRID
:
708 case CX231XX_BOARD_KWORLD_UB430_USB_HYBRID
:
710 printk(KERN_INFO
"%s: looking for demod on i2c bus: %d\n",
711 __func__
, i2c_adapter_id(&dev
->i2c_bus
[dev
->board
.tuner_i2c_master
].i2c_adap
));
713 dev
->dvb
->frontend
= dvb_attach(mb86a20s_attach
,
715 &dev
->i2c_bus
[dev
->board
.demod_i2c_master
].i2c_adap
);
717 if (dev
->dvb
->frontend
== NULL
) {
719 ": Failed to attach mb86a20s demod\n");
724 /* define general-purpose callback pointer */
725 dvb
->frontend
->callback
= cx231xx_tuner_callback
;
727 dvb_attach(tda18271_attach
, dev
->dvb
->frontend
,
728 0x60, &dev
->i2c_bus
[dev
->board
.tuner_i2c_master
].i2c_adap
,
729 &pv_tda18271_config
);
733 printk(KERN_ERR
"%s/2: The frontend of your DVB/ATSC card"
734 " isn't supported yet\n", dev
->name
);
737 if (NULL
== dvb
->frontend
) {
739 "%s/2: frontend initialization failed\n", dev
->name
);
744 /* register everything */
745 result
= register_dvb(dvb
, THIS_MODULE
, dev
, &dev
->udev
->dev
);
751 printk(KERN_INFO
"Successfully loaded cx231xx-dvb\n");
754 cx231xx_set_mode(dev
, CX231XX_SUSPEND
);
755 mutex_unlock(&dev
->lock
);
764 static int dvb_fini(struct cx231xx
*dev
)
766 if (!dev
->board
.has_dvb
) {
767 /* This device does not support the extension */
772 unregister_dvb(dev
->dvb
);
779 static struct cx231xx_ops dvb_ops
= {
781 .name
= "Cx231xx dvb Extension",
786 static int __init
cx231xx_dvb_register(void)
788 return cx231xx_register_extension(&dvb_ops
);
791 static void __exit
cx231xx_dvb_unregister(void)
793 cx231xx_unregister_extension(&dvb_ops
);
796 module_init(cx231xx_dvb_register
);
797 module_exit(cx231xx_dvb_unregister
);