[media] dvb: modify core to implement interfaces/entities at MC new gen
The Media Controller New Generation redefines the types for both interfaces and entities to be used on DVB. Make the needed changes at the DVB core for all interfaces, entities and data and interface links to appear in the graph. Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
@@ -705,7 +705,8 @@ struct dvb_device *dst_ca_attach(struct dst_state *dst, struct dvb_adapter *dvb_
|
||||
struct dvb_device *dvbdev;
|
||||
|
||||
dprintk(verbose, DST_CA_ERROR, 1, "registering DST-CA device");
|
||||
if (dvb_register_device(dvb_adapter, &dvbdev, &dvbdev_ca, dst, DVB_DEVICE_CA) == 0) {
|
||||
if (dvb_register_device(dvb_adapter, &dvbdev, &dvbdev_ca, dst,
|
||||
DVB_DEVICE_CA, 0) == 0) {
|
||||
dst->dst_ca = dvbdev;
|
||||
return dst->dst_ca;
|
||||
}
|
||||
|
@@ -1065,7 +1065,7 @@ static int ddb_ci_attach(struct ddb_port *port)
|
||||
port->en, 0, 1);
|
||||
ret = dvb_register_device(&port->output->adap, &port->output->dev,
|
||||
&dvbdev_ci, (void *) port->output,
|
||||
DVB_DEVICE_SEC);
|
||||
DVB_DEVICE_SEC, 0);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@@ -1513,7 +1513,7 @@ static int init_channel(struct ngene_channel *chan)
|
||||
set_transfer(&chan->dev->channel[2], 1);
|
||||
dvb_register_device(adapter, &chan->ci_dev,
|
||||
&ngene_dvbdev_ci, (void *) chan,
|
||||
DVB_DEVICE_SEC);
|
||||
DVB_DEVICE_SEC, 0);
|
||||
if (!chan->ci_dev)
|
||||
goto err;
|
||||
}
|
||||
|
@@ -1358,7 +1358,7 @@ static int av7110_register(struct av7110 *av7110)
|
||||
|
||||
#ifdef CONFIG_DVB_AV7110_OSD
|
||||
dvb_register_device(&av7110->dvb_adapter, &av7110->osd_dev,
|
||||
&dvbdev_osd, av7110, DVB_DEVICE_OSD);
|
||||
&dvbdev_osd, av7110, DVB_DEVICE_OSD, 0);
|
||||
#endif
|
||||
|
||||
dvb_net_init(&av7110->dvb_adapter, &av7110->dvb_net, &dvbdemux->dmx);
|
||||
|
@@ -1594,10 +1594,10 @@ int av7110_av_register(struct av7110 *av7110)
|
||||
memset(&av7110->video_size, 0, sizeof (video_size_t));
|
||||
|
||||
dvb_register_device(&av7110->dvb_adapter, &av7110->video_dev,
|
||||
&dvbdev_video, av7110, DVB_DEVICE_VIDEO);
|
||||
&dvbdev_video, av7110, DVB_DEVICE_VIDEO, 0);
|
||||
|
||||
dvb_register_device(&av7110->dvb_adapter, &av7110->audio_dev,
|
||||
&dvbdev_audio, av7110, DVB_DEVICE_AUDIO);
|
||||
&dvbdev_audio, av7110, DVB_DEVICE_AUDIO, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -378,7 +378,7 @@ static struct dvb_device dvbdev_ca = {
|
||||
int av7110_ca_register(struct av7110 *av7110)
|
||||
{
|
||||
return dvb_register_device(&av7110->dvb_adapter, &av7110->ca_dev,
|
||||
&dvbdev_ca, av7110, DVB_DEVICE_CA);
|
||||
&dvbdev_ca, av7110, DVB_DEVICE_CA, 0);
|
||||
}
|
||||
|
||||
void av7110_ca_unregister(struct av7110 *av7110)
|
||||
|
Reference in New Issue
Block a user