diff options
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); |