Commit 99443ae0 authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab

V4L/DVB (7680): pvrusb2-dvb: add pvr2_dvb_bus_ctrl to allow frontends to negotiate bus access

This function is just a skeleton for now -
a placeholder to remind us to fix it.
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 04910bdc
...@@ -39,6 +39,17 @@ static int pvr2_dvb_stop_feed(struct dvb_demux_feed *dvbdmxfeed) ...@@ -39,6 +39,17 @@ static int pvr2_dvb_stop_feed(struct dvb_demux_feed *dvbdmxfeed)
return 0; /* FIXME: pvr2_dvb_ctrl_feed(dvbdmxfeed, 0); */ return 0; /* FIXME: pvr2_dvb_ctrl_feed(dvbdmxfeed, 0); */
} }
static int pvr2_dvb_bus_ctrl(struct dvb_frontend *fe, int acquire)
{
/* TO DO: This function will call into the core and request for
* input to be set to 'dtv' if (acquire) and if it isn't set already.
*
* If (!acquire) then we should do nothing -- don't switch inputs
* again unless the analog side of the driver requests the bus.
*/
return 0;
}
static int pvr2_dvb_adapter_init(struct pvr2_dvb_adapter *adap) static int pvr2_dvb_adapter_init(struct pvr2_dvb_adapter *adap)
{ {
int ret; int ret;
...@@ -136,6 +147,9 @@ static int pvr2_dvb_frontend_init(struct pvr2_dvb_adapter *adap) ...@@ -136,6 +147,9 @@ static int pvr2_dvb_frontend_init(struct pvr2_dvb_adapter *adap)
if (adap->fe->ops.analog_ops.standby) if (adap->fe->ops.analog_ops.standby)
adap->fe->ops.analog_ops.standby(adap->fe); adap->fe->ops.analog_ops.standby(adap->fe);
/* Ensure all frontends negotiate bus access */
adap->fe->ops.ts_bus_ctrl = pvr2_dvb_bus_ctrl;
} else { } else {
err("no frontend was attached!"); err("no frontend was attached!");
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment