summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttusb-dec
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/ttusb-dec')
-rw-r--r--linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c4
-rw-r--r--linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h2
2 files changed, 6 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);
diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h
index b658e7ad0..b0dd8199c 100644
--- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h
+++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h
@@ -27,6 +27,7 @@
#include "dvb_demux.h"
#include "dvb_filter.h"
#include "dvb_i2c.h"
+#include "dvb_net.h"
#define DRIVER_NAME "TechnoTrend/Hauppauge DEC USB"
@@ -51,6 +52,7 @@ typedef struct ttusb_dec_s {
struct dvb_demux demux;
dmx_frontend_t frontend;
struct dvb_i2c_bus *i2c_bus;
+ dvb_net_t dvb_net;
u16 pid[DMX_PES_OTHER];