[media] dvb-usb-v2: 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 due to a rebase]
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-12 08:37:25 -03:00
committed by Mauro Carvalho Chehab
parent 4b208f8b56
commit 6f6c77d8d2
2 changed files with 66 additions and 0 deletions

View File

@@ -25,6 +25,7 @@
#include <linux/usb/input.h>
#include <linux/firmware.h>
#include <media/rc-core.h>
#include <media/media-device.h>
#include "dvb_frontend.h"
#include "dvb_demux.h"
@@ -391,6 +392,10 @@ struct dvb_usb_device {
struct delayed_work rc_query_work;
void *priv;
#if defined(CONFIG_MEDIA_CONTROLLER_DVB)
struct media_device *media_dev;
#endif
};
extern int dvb_usbv2_probe(struct usb_interface *,