static int mantis_dvb_stop_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 Stop 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--; if (mantis->feeds == 0) { #ifdef CONFIG_DEBUG_PRINTK dprintk(MANTIS_DEBUG, 1, "mantis stop feed and dma"); #else d; #endif tasklet_disable(&mantis->tasklet); mantis_dma_stop(mantis); } return 0; }
static int mantis_dvb_stop_feed(struct dvb_demux_feed *dvbdmxfeed) { struct dvb_demux *dvbdmx = dvbdmxfeed->demux; struct mantis_pci *mantis = dvbdmx->priv; dprintk(MANTIS_DEBUG, 1, "Mantis DVB Stop feed"); if (!dvbdmx->dmx.frontend) { dprintk(MANTIS_DEBUG, 1, "no frontend ?"); return -EINVAL; } mantis->feeds--; if (mantis->feeds == 0) { dprintk(MANTIS_DEBUG, 1, "mantis stop feed and dma"); mantis_dma_stop(mantis); } return 0; }