diff options
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-video.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index d3a959b9ee64..f3fc44b352b4 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c | |||
@@ -28,10 +28,10 @@ | |||
28 | #include <linux/kernel.h> | 28 | #include <linux/kernel.h> |
29 | #include <linux/usb.h> | 29 | #include <linux/usb.h> |
30 | #include <linux/i2c.h> | 30 | #include <linux/i2c.h> |
31 | #include <media/tuner.h> | ||
32 | #include <linux/video_decoder.h> | 31 | #include <linux/video_decoder.h> |
33 | 32 | ||
34 | #include "em2820.h" | 33 | #include "em2820.h" |
34 | #include <media/tuner.h> | ||
35 | 35 | ||
36 | #define DRIVER_AUTHOR "Markus Rechberger <mrechberger@gmail.com>, " \ | 36 | #define DRIVER_AUTHOR "Markus Rechberger <mrechberger@gmail.com>, " \ |
37 | "Ludovico Cavedon <cavedon@sssup.it>, " \ | 37 | "Ludovico Cavedon <cavedon@sssup.it>, " \ |
@@ -1699,15 +1699,22 @@ static int em2820_usb_probe(struct usb_interface *interface, | |||
1699 | struct usb_device *udev; | 1699 | struct usb_device *udev; |
1700 | struct em2820 *dev = NULL; | 1700 | struct em2820 *dev = NULL; |
1701 | int retval = -ENODEV; | 1701 | int retval = -ENODEV; |
1702 | int model,i,nr; | 1702 | int model,i,nr,ifnum; |
1703 | 1703 | ||
1704 | udev = usb_get_dev(interface_to_usbdev(interface)); | 1704 | udev = usb_get_dev(interface_to_usbdev(interface)); |
1705 | endpoint = &interface->cur_altsetting->endpoint[1].desc; | 1705 | ifnum = interface->altsetting[0].desc.bInterfaceNumber; |
1706 | |||
1707 | em2820_err(DRIVER_NAME " new device (%04x:%04x): interface %i, class %i\n", | ||
1708 | udev->descriptor.idVendor,udev->descriptor.idProduct, | ||
1709 | ifnum, | ||
1710 | interface->altsetting[0].desc.bInterfaceClass); | ||
1706 | 1711 | ||
1707 | /* Don't register audio interfaces */ | 1712 | /* Don't register audio interfaces */ |
1708 | if (interface->altsetting[1].desc.bInterfaceClass == USB_CLASS_AUDIO) | 1713 | if (interface->altsetting[0].desc.bInterfaceClass == USB_CLASS_AUDIO) |
1709 | return -ENODEV; | 1714 | return -ENODEV; |
1710 | 1715 | ||
1716 | endpoint = &interface->cur_altsetting->endpoint[1].desc; | ||
1717 | |||
1711 | /* check if the the device has the iso in endpoint at the correct place */ | 1718 | /* check if the the device has the iso in endpoint at the correct place */ |
1712 | if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != | 1719 | if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != |
1713 | USB_ENDPOINT_XFER_ISOC) { | 1720 | USB_ENDPOINT_XFER_ISOC) { |