9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Michael Forney <mforney@mforney.org>
To: 9front@9front.org
Subject: [9front] [PATCH 1/5] nusb: move audio-specific requests to nusb/audio
Date: Fri, 18 Nov 2022 09:11:48 +0000	[thread overview]
Message-ID: <c52f66c9b724c9fdb70d7bd28ea265dec802b3ec.1668828454.git.mforney@mforney.org> (raw)
In-Reply-To: <cover.1668828454.git.mforney@mforney.org>

---
 sys/src/cmd/nusb/audio/audio.c | 11 +++++++++++
 sys/src/cmd/nusb/lib/usb.h     |  9 ---------
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/sys/src/cmd/nusb/audio/audio.c b/sys/src/cmd/nusb/audio/audio.c
index b6944a725d..4018352022 100644
--- a/sys/src/cmd/nusb/audio/audio.c
+++ b/sys/src/cmd/nusb/audio/audio.c
@@ -5,6 +5,17 @@
 #include <9p.h>
 #include "usb.h"
 
+enum {
+	Rgetcur	= 0x81,
+	Rgetmin	= 0x82,
+	Rgetmax	= 0x83,
+	Rgetres	= 0x84,
+	Rsetcur	= 0x01,
+	Rsetmin	= 0x02,
+	Rsetmax	= 0x03,
+	Rsetres	= 0x04,
+};
+
 typedef struct Range Range;
 struct Range
 {
diff --git a/sys/src/cmd/nusb/lib/usb.h b/sys/src/cmd/nusb/lib/usb.h
index c34df70826..6fbb7c8d50 100644
--- a/sys/src/cmd/nusb/lib/usb.h
+++ b/sys/src/cmd/nusb/lib/usb.h
@@ -52,15 +52,6 @@ enum {
 	Rsethubdepth	= 12,
 	Rgetporterrcnt	= 13,
 
-	Rgetcur	= 0x81,
-	Rgetmin	= 0x82,
-	Rgetmax	= 0x83,
-	Rgetres	= 0x84,
-	Rsetcur	= 0x01,
-	Rsetmin	= 0x02,
-	Rsetmax	= 0x03,
-	Rsetres	= 0x04,
-
 	/* dev classes */
 	Clnone		= 0,		/* not in usb */
 	Claudio		= 1,
-- 
2.37.3


  reply	other threads:[~2022-11-19  3:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-19  3:27 [9front] [PATCH 0/5] USB audio 2.0 Michael Forney
2022-11-18  9:11 ` Michael Forney [this message]
2022-11-18  9:11 ` [9front] [PATCH 2/5] nusb/audio: remove code for bi-directional endpoint Michael Forney
2022-11-18  9:11 ` [9front] [PATCH 3/5] nusb/audio: only consider data endpoints when setting up stream Michael Forney
2022-11-18  9:21 ` [9front] [PATCH 4/5] nusb/audio: enumerate streams through control interface Michael Forney
2022-11-18 20:35 ` [9front] [PATCH 5/5] nusb/audio: add support for USB audio 2.0 Michael Forney

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=c52f66c9b724c9fdb70d7bd28ea265dec802b3ec.1668828454.git.mforney@mforney.org \
    --to=mforney@mforney.org \
    --cc=9front@9front.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).