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 ++++ linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'linux/drivers') 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]; -- cgit v1.2.3