From: Daniel Mack <zonque@gmail.com>
To: alsa-devel@alsa-project.org
Cc: tiwai@suse.de, Greg Kroah-Hartman <gregkh@suse.de>,
clemens@ladisch.de, Daniel Mack <zonque@gmail.com>
Subject: [PATCH 1/4] USB: Add endpoint usage definitions to ch9.h
Date: Mon, 12 Sep 2011 18:54:10 +0200 [thread overview]
Message-ID: <1315846453-5036-2-git-send-email-zonque@gmail.com> (raw)
In-Reply-To: <1315846453-5036-1-git-send-email-zonque@gmail.com>
The endpoint usage field is described in the USB 2.0 specification,
chapter 9.6.6.
Also, move the sync type fields block down by some lines to reflect the
fact that these are also stuffed in bmAttributes.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Takashi Iwai <tiwai@suse.de>
---
include/linux/usb/ch9.h | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h
index 0fd3fbd..f302535 100644
--- a/include/linux/usb/ch9.h
+++ b/include/linux/usb/ch9.h
@@ -377,12 +377,6 @@ struct usb_endpoint_descriptor {
#define USB_ENDPOINT_NUMBER_MASK 0x0f /* in bEndpointAddress */
#define USB_ENDPOINT_DIR_MASK 0x80
-#define USB_ENDPOINT_SYNCTYPE 0x0c
-#define USB_ENDPOINT_SYNC_NONE (0 << 2)
-#define USB_ENDPOINT_SYNC_ASYNC (1 << 2)
-#define USB_ENDPOINT_SYNC_ADAPTIVE (2 << 2)
-#define USB_ENDPOINT_SYNC_SYNC (3 << 2)
-
#define USB_ENDPOINT_XFERTYPE_MASK 0x03 /* in bmAttributes */
#define USB_ENDPOINT_XFER_CONTROL 0
#define USB_ENDPOINT_XFER_ISOC 1
@@ -390,6 +384,17 @@ struct usb_endpoint_descriptor {
#define USB_ENDPOINT_XFER_INT 3
#define USB_ENDPOINT_MAX_ADJUSTABLE 0x80
+#define USB_ENDPOINT_SYNCTYPE 0x0c
+#define USB_ENDPOINT_SYNC_NONE (0 << 2)
+#define USB_ENDPOINT_SYNC_ASYNC (1 << 2)
+#define USB_ENDPOINT_SYNC_ADAPTIVE (2 << 2)
+#define USB_ENDPOINT_SYNC_SYNC (3 << 2)
+
+#define USB_ENDPOINT_USAGE_MASK 0x30
+#define USB_ENDPOINT_USAGE_DATA 0x00
+#define USB_ENDPOINT_USAGE_FEEDBACK 0x10
+#define USB_ENDPOINT_USAGE_IMPLICIT_FB 0x20 /* Implicit feedback Data endpoint */
+
/*-------------------------------------------------------------------------*/
/**
--
1.7.5.4
next prev parent reply other threads:[~2011-09-12 16:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-12 16:54 [PATCH 0/4] Cleanups for snd-usb-audio Daniel Mack
2011-09-12 16:54 ` Daniel Mack [this message]
2011-09-12 17:13 ` [PATCH 1/4] USB: Add endpoint usage definitions to ch9.h Daniel Mack
2011-09-14 12:54 ` Greg KH
2011-09-12 16:54 ` [PATCH 2/4] ALSA: snd-usb: re-order the Makefile Daniel Mack
2011-09-12 16:54 ` [PATCH 3/4] ALSA: snd-usb: re-order code Daniel Mack
2011-09-12 16:54 ` [PATCH 4/4] ALSA: snd-usb: move code from urb.c to endpoint.c Daniel Mack
2011-09-14 9:44 ` Takashi Iwai
2011-09-14 10:45 ` Daniel Mack
2011-09-14 10:46 ` Daniel Mack
2011-09-14 11:42 ` Takashi Iwai
2011-09-12 17:02 ` [PATCH 0/4] Cleanups for snd-usb-audio Clemens Ladisch
2011-09-14 8:27 ` Daniel Mack
2011-09-14 8:28 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1315846453-5036-2-git-send-email-zonque@gmail.com \
--to=zonque@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
--cc=gregkh@suse.de \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.