diff options
author | Alex Woods <devnull@localhost> | 2003-04-15 22:57:31 +0000 |
---|---|---|
committer | Alex Woods <devnull@localhost> | 2003-04-15 22:57:31 +0000 |
commit | e717a1f5126bbe341c35e84dda88c32766f919f0 (patch) | |
tree | eeb93503f8e0684a71aee6f7e095678ee47bb8f7 /linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c | |
parent | 310a2d45751192e6fb905505378918dedf729a94 (diff) | |
download | mediapointer-dvb-s2-e717a1f5126bbe341c35e84dda88c32766f919f0.tar.gz mediapointer-dvb-s2-e717a1f5126bbe341c35e84dda88c32766f919f0.tar.bz2 |
Create a dvb net device.
Diffstat (limited to 'linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c')
-rw-r--r-- | linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |