]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging/easycap: use USB_SUBCLASS_AUDIOSTREAMING instead of 0x02
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 21 Feb 2011 14:09:55 +0000 (16:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Feb 2011 22:15:35 +0000 (14:15 -0800)
use USB_SUBCLASS_AUDIOSTREAMING constant from usb/audio.h
instead of 0x02

Cc: Mike Thomas <rmthomas@sciolus.org>
Cc: Dan Carpenter <error27@gmail.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/easycap/easycap_main.c

index ea8a2e0e184d9fa4f887e634dd5fb5d90847bfa0..fc1a1781227e13f9dfc00d6f5de2d2d54bc414f2 100644 (file)
@@ -29,6 +29,7 @@
 /*****************************************************************************/
 
 #include "easycap.h"
+#include <linux/usb/audio.h>
 
 
 MODULE_LICENSE("GPL");
@@ -3494,7 +3495,7 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
                        }
                }
        } else if ((USB_CLASS_AUDIO == bInterfaceClass) &&
-                  (0x02 == bInterfaceSubClass)) {
+                  (USB_SUBCLASS_AUDIOSTREAMING == bInterfaceSubClass)) {
                if (-1 == peasycap->audio_interface) {
                        peasycap->audio_interface = bInterfaceNumber;
                        JOM(4, "setting peasycap->audio_interface=%i\n",
@@ -3654,7 +3655,8 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
                                                break;
                                        }
                                        case USB_CLASS_AUDIO: {
-                                               if (0x02 != bInterfaceSubClass)
+                                               if (bInterfaceSubClass !=
+                                                   USB_SUBCLASS_AUDIOSTREAMING)
                                                        break;
                                                if (!peasycap) {
                                                        SAM("MISTAKE: "