shithub: riscv

Download patch

ref: 6b5f6b9a739a8b7cf73c129f8723c66a0cda2837
parent: 6169a4ed4cacef439cdc32abf60b19f00a02a8e1
author: Michael Forney <mforney@mforney.org>
date: Fri Nov 18 04:11:48 EST 2022

nusb: move audio-specific requests to nusb/audio

--- 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
 {
--- a/sys/src/cmd/nusb/lib/usb.h
+++ b/sys/src/cmd/nusb/lib/usb.h
@@ -52,15 +52,6 @@
 	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,