From e717a1f5126bbe341c35e84dda88c32766f919f0 Mon Sep 17 00:00:00 2001 From: Alex Woods Date: Tue, 15 Apr 2003 22:57:31 +0000 Subject: Create a dvb net device. --- linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c') diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c index bb1d30644..d1f8b0b99 100644 --- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c +++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c @@ -976,6 +976,9 @@ ttusb_dec_init_dvb(ttusb_dec_t * dec) sema_init(&dec->pes2ts_sem, 1); + dec->dvb_net.card_num = dec->adapter->num; + dvb_net_init(dec->adapter, &dec->dvb_net, &dec->demux.dmx); + return 0; } @@ -986,6 +989,7 @@ ttusb_dec_exit_dvb(ttusb_dec_t * dec) dprintk("%s\n", __FUNCTION__); + dvb_net_release(&dec->dvb_net); dec->demux.dmx.close(&dec->demux.dmx); dec->demux.dmx.remove_frontend(&dec->demux.dmx, &dec->frontend); dvb_dmxdev_release(&dec->dmxdev); -- cgit v1.2.3