[media] dvb-usb: add support for the media controller at USB driver

Create a struct media_device and add it to the dvb adapter.

Please notice that the tuner is not mapped yet by the dvb core.

[mchehab@osg.samsung.com: use config option MEDIA_CONTROLLER_DVB]
Signed-off-by: Rafael Lourenço de Lima Chehab <chehabrafael@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
Rafael Lourenço de Lima Chehab
2015-02-13 18:29:14 -03:00
committed by Mauro Carvalho Chehab
parent 823b460ee7
commit 496ccf92b9
2 changed files with 62 additions and 0 deletions

View File

@@ -453,6 +453,10 @@ struct dvb_usb_device {
struct module *owner;
void *priv;
#ifdef CONFIG_MEDIA_CONTROLLER_DVB
struct media_device *media_dev;
#endif
};
extern int dvb_usb_device_init(struct usb_interface *,