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>
/*****************************************************************************/
#include "easycap.h"
+#include <linux/usb/audio.h>
MODULE_LICENSE("GPL");
}
}
} 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",
break;
}
case USB_CLASS_AUDIO: {
- if (0x02 != bInterfaceSubClass)
+ if (bInterfaceSubClass !=
+ USB_SUBCLASS_AUDIOSTREAMING)
break;
if (!peasycap) {
SAM("MISTAKE: "