Skip to contentSkip to conversation

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

PATCH New Rafael Lourenço de Lima Chehab 1 participant 1 message Feb 12, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 14e111e13e54..b273250d0e31 100644
@@ -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