[PATCH 3/4] tm6000: Use mask when getting XFERTYPE from bmAttributes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# HG changeset patch
# User Kevin Wells <kevin.wells@xxxxxxxxxxxx>
# Date 1238885144 -43200
# Node ID 02d3a231b99e1eef922679f1381eecd0b9990d23
# Parent  3140e621a17b536eb1487f8f9ad5b7b6a8ff8341
Use mask when getting XFERTYPE from bmAttributes

From: Kevin Wells <kevin.wells@xxxxxxxxxxxx>

Priority: normal

Signed-off-by: Kevin Wells <kevin.wells@xxxxxxxxxxxx>

diff -r 3140e621a17b -r 02d3a231b99e linux/drivers/media/video/tm6000/tm6000-cards.c --- a/linux/drivers/media/video/tm6000/tm6000-cards.c Sat Apr 04 23:39:18 2009 +1300 +++ b/linux/drivers/media/video/tm6000/tm6000-cards.c Sun Apr 05 10:45:44 2009 +1200
@@ -446,7 +446,7 @@
                   interface->altsetting[i].desc.bInterfaceNumber,
                   interface->altsetting[i].desc.bInterfaceClass);

-            switch (e->desc.bmAttributes) {
+            switch (e->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) {
            case USB_ENDPOINT_XFER_BULK:
                if (!dir_out) {
                    get_max_endpoint (usbdev, "Bulk IN", e,
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux