dvb_dmxdev_init(&av7110->dmxdev1, av7110->dvb_adapter); 
dvb_dmxdev_init(&av7110->dmxdev1, &av7110->dvb_adapter); 
static int av7110_register(struct av7110 *av7110){	int ret, i;	struct dvb_demux *dvbdemux = &av7110->demux;	struct dvb_demux *dvbdemux1 = &av7110->demux1;	dprintk(4, "%p\n", av7110);	if (av7110->registered)		return -1;	av7110->registered = 1;	dvbdemux->priv = (void *) av7110;	for (i = 0; i < 32; i++)		av7110->handle2filter[i] = NULL;	dvbdemux->filternum = 32;	dvbdemux->feednum = 32;	dvbdemux->start_feed = av7110_start_feed;	dvbdemux->stop_feed = av7110_stop_feed;	dvbdemux->write_to_decoder = av7110_write_to_decoder;	dvbdemux->dmx.capabilities = (DMX_TS_FILTERING | DMX_SECTION_FILTERING |				      DMX_MEMORY_BASED_FILTERING);	dvb_dmx_init(&av7110->demux);	av7110->demux.dmx.get_stc = dvb_get_stc;	av7110->dmxdev.filternum = 32;	av7110->dmxdev.demux = &dvbdemux->dmx;	av7110->dmxdev.capabilities = 0;	dvb_dmxdev_init(&av7110->dmxdev, av7110->dvb_adapter);	av7110->hw_frontend.source = DMX_FRONTEND_0;	ret = dvbdemux->dmx.add_frontend(&dvbdemux->dmx, &av7110->hw_frontend);	if (ret < 0)		return ret;	av7110->mem_frontend.source = DMX_MEMORY_FE;	ret = dvbdemux->dmx.add_frontend(&dvbdemux->dmx, &av7110->mem_frontend);	if (ret < 0)		return ret;	ret = dvbdemux->dmx.connect_frontend(&dvbdemux->dmx,					     &av7110->hw_frontend);	if (ret < 0)		return ret;	av7110_av_register(av7110);	av7110_ca_register(av7110);#ifdef CONFIG_DVB_AV7110_OSD	dvb_register_device(av7110->dvb_adapter, &av7110->osd_dev,			    &dvbdev_osd, av7110, DVB_DEVICE_OSD);#endif	dvb_net_init(av7110->dvb_adapter, &av7110->dvb_net, &dvbdemux->dmx);	if (budgetpatch) {		/* initialize software demux1 without its own frontend		 * demux1 hardware is connected to frontend0 of demux0		 */		dvbdemux1->priv = (void *) av7110;		dvbdemux1->filternum = 256;		dvbdemux1->feednum = 256;		dvbdemux1->start_feed = budget_start_feed;		dvbdemux1->stop_feed = budget_stop_feed;		dvbdemux1->write_to_decoder = NULL;		dvbdemux1->dmx.capabilities = (DMX_TS_FILTERING | DMX_SECTION_FILTERING |					       DMX_MEMORY_BASED_FILTERING);		dvb_dmx_init(&av7110->demux1);		av7110->dmxdev1.filternum = 256;		av7110->dmxdev1.demux = &dvbdemux1->dmx;		av7110->dmxdev1.capabilities = 0;		dvb_dmxdev_init(&av7110->dmxdev1, av7110->dvb_adapter);		dvb_net_init(av7110->dvb_adapter, &av7110->dvb_net1, &dvbdemux1->dmx);		printk("dvb-ttpci: additional demux1 for budget-patch registered\n");	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/fdc53a6dbfea18e621dd23ed5cfb160837d7ce52/av7110.c/buggy/drivers/media/dvb/ttpci/av7110.c