[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:

committed by
Mauro Carvalho Chehab

parent
4b208f8b56
commit
6f6c77d8d2
@@ -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 *,
|
||||
|
Reference in New Issue
Block a user