[staging-next 4/4 V2] staging/easycap: use USB_SUBCLASS_AUDIOSTREAMING instead of 0x02

Tomas Winkler tomas.winkler at intel.com
Mon Feb 21 14:09:55 UTC 2011


use USB_SUBCLASS_AUDIOSTREAMING constant from usb/audio.h
instead of 0x02

Cc: Mike Thomas <rmthomas at sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler at intel.com>
---
V2: fix typo bInterfaceClass -> bInterfaceSubClass
 drivers/staging/easycap/easycap_main.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/easycap/easycap_main.c b/drivers/staging/easycap/easycap_main.c
index ea8a2e0..fc1a178 100644
--- a/drivers/staging/easycap/easycap_main.c
+++ b/drivers/staging/easycap/easycap_main.c
@@ -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: "
-- 
1.7.4

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.




More information about the devel mailing list