Commit fc3cc2ca authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman

staging/easycap: use USB_SUBCLASS_AUDIOSTREAMING instead of 0x02

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: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent dfcce7bf
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
/*****************************************************************************/ /*****************************************************************************/
#include "easycap.h" #include "easycap.h"
#include <linux/usb/audio.h>
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -3494,7 +3495,7 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface, ...@@ -3494,7 +3495,7 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
} }
} }
} else if ((USB_CLASS_AUDIO == bInterfaceClass) && } else if ((USB_CLASS_AUDIO == bInterfaceClass) &&
(0x02 == bInterfaceSubClass)) { (USB_SUBCLASS_AUDIOSTREAMING == bInterfaceSubClass)) {
if (-1 == peasycap->audio_interface) { if (-1 == peasycap->audio_interface) {
peasycap->audio_interface = bInterfaceNumber; peasycap->audio_interface = bInterfaceNumber;
JOM(4, "setting peasycap->audio_interface=%i\n", JOM(4, "setting peasycap->audio_interface=%i\n",
...@@ -3654,7 +3655,8 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface, ...@@ -3654,7 +3655,8 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
break; break;
} }
case USB_CLASS_AUDIO: { case USB_CLASS_AUDIO: {
if (0x02 != bInterfaceSubClass) if (bInterfaceSubClass !=
USB_SUBCLASS_AUDIOSTREAMING)
break; break;
if (!peasycap) { if (!peasycap) {
SAM("MISTAKE: " SAM("MISTAKE: "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment