22 #include <linux/kernel.h>
23 #include <linux/errno.h>
24 #include <linux/module.h>
26 #include <linux/videodev2.h>
33 #ifdef CONFIG_VIDEO_PVRUSB2_SYSFS
38 #define DRIVER_DESC "Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner"
39 #define DRIVER_VERSION "V4L in-tree version"
41 #define DEFAULT_DEBUG_MASK (PVR2_TRACE_ERROR_LEGS| \
44 PVR2_TRACE_TOLERANCE| \
53 #ifdef CONFIG_VIDEO_PVRUSB2_SYSFS
61 #ifdef CONFIG_VIDEO_PVRUSB2_DVB
65 #ifdef CONFIG_VIDEO_PVRUSB2_SYSFS
79 "Failed to create hdw handler");
85 usb_set_intfdata(intf, pvr);
100 usb_set_intfdata (intf,
NULL);
107 static struct usb_driver pvr_driver = {
111 .disconnect = pvr_disconnect
120 static int __init pvr_init(
void)
132 #ifdef CONFIG_VIDEO_PVRUSB2_SYSFS
136 ret = usb_register(&pvr_driver);
150 static void __exit pvr_exit(
void)
158 #ifdef CONFIG_VIDEO_PVRUSB2_SYSFS