Ejemplo n.º 1
0
static int mantis_dvb_start_feed(struct dvb_demux_feed *dvbdmxfeed)
{
	struct dvb_demux *dvbdmx = dvbdmxfeed->demux;
	struct mantis_pci *mantis = dvbdmx->priv;

	dprintk(MANTIS_DEBUG, 1, "Mantis DVB Start feed");
	if (!dvbdmx->dmx.frontend) {
		dprintk(MANTIS_DEBUG, 1, "no frontend ?");
		return -EINVAL;
	}

	mantis->feeds++;
	dprintk(MANTIS_DEBUG, 1, "mantis start feed, feeds=%d",	mantis->feeds);

	if (mantis->feeds == 1)	 {
		dprintk(MANTIS_DEBUG, 1, "mantis start feed & dma");
		mantis_dma_start(mantis);
	}

	return mantis->feeds;
}
Ejemplo n.º 2
0
static int mantis_dvb_start_feed(struct dvb_demux_feed *dvbdmxfeed)
{
	struct dvb_demux *dvbdmx = dvbdmxfeed->demux;
	struct mantis_pci *mantis = dvbdmx->priv;

#ifdef CONFIG_DEBUG_PRINTK
	dprintk(MANTIS_DEBUG, 1, "Mantis DVB Start feed");
#else
	d;
#endif
	if (!dvbdmx->dmx.frontend) {
#ifdef CONFIG_DEBUG_PRINTK
		dprintk(MANTIS_DEBUG, 1, "no frontend ?");
#else
		d;
#endif
		return -EINVAL;
	}

	mantis->feeds++;
#ifdef CONFIG_DEBUG_PRINTK
	dprintk(MANTIS_DEBUG, 1, "mantis start feed, feeds=%d",	mantis->feeds);
#else
	d;
#endif

	if (mantis->feeds == 1)	 {
#ifdef CONFIG_DEBUG_PRINTK
		dprintk(MANTIS_DEBUG, 1, "mantis start feed & dma");
#else
		d;
#endif
		mantis_dma_start(mantis);
		tasklet_enable(&mantis->tasklet);
	}

	return mantis->feeds;
}