dvb-usb-v2: add support for the media controller at USB driver
Subsystems (2)
PATCH v2 1/1 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.
Signed-off-by Rafael Lourenço de Lima Chehab <[email protected]>
--- drivers/media/usb/dvb-usb-v2/dvb_usb.h | 5 +++ drivers/media/usb/dvb-usb-v2/dvb_usb_core.c | 61 +++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+)
drivers/media/usb/dvb-usb-v2/dvb_usb.h +5 -0
@@ -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"
@@ -389,6 +390,10 @@ struct dvb_usb_device {struct delayed_work rc_query_work;void *priv; + +#if defined(CONFIG_MEDIA_CONTROLLER ) +struct media_device *media_dev; +#endif }; extern int dvb_usbv2_probe(struct usb_interface *,
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c +61 -0
103 lines not on this page · raw message
Signature · 1 line
2.1.0