From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=DATE_IN_PAST_12_24, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 6980 invoked from network); 19 Nov 2022 03:42:17 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 19 Nov 2022 03:42:17 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Received: from mail-pl1-f172.google.com ([209.85.214.172]) by 9front; Fri Nov 18 22:39:00 -0500 2022 Received: by mail-pl1-f172.google.com with SMTP id b21so6165508plc.9 for <9front@9front.org>; Fri, 18 Nov 2022 19:38:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney.org; s=google; h=to:subject:date:from:references:in-reply-to:message-id:from:to:cc :subject:date:message-id:reply-to; bh=MX4hwMn9KyforZS/2EqkfdgIOg8oDs1eEErYpuGpAmQ=; b=dUbaAb3gYd4HkZryl5iFdl4IpPGmr4nVVLkpaZFrFJzW+RkuFTXnKSqoXcDHxlL46l 3LovW8z1kWbEM22UXZ5ZfWHdedgZ6nOBtyfHcMLD5LP00obhkYPcW2ykH7S+X+bl4hcz FgE/Ys5f9oNPxc1bq4db5DLHaSraoFpdZ3DemQ0Q6S7/zPQgIGwXsojhFkW54FFfbXpN l3BOcEocfhPr+3jdG5jIpW2rglU3XACIjsesgnPenCyliHX9PHIi/BY+ww4eQ1T//jD4 YGCI6dTyOnxVH29CYuLLatLosqxQCVHspOVMr+tl2sWnSKcMgMrk1tDmLOCvgER0XS8O CDjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:date:from:references:in-reply-to:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MX4hwMn9KyforZS/2EqkfdgIOg8oDs1eEErYpuGpAmQ=; b=j4a8cC6ytPo6QcwFbQEQWwRCg/6HPcQAMkmWYCYnZToWmyBqNHjf9DJg1ydztRcjkY x/aBOq4wfrlWCFtdH3qYAUZtaUb7m7DQhrxTkzvZDMTXd5dUEuxZGntDrgDn4VXtZigc N/6MifHmy1FQrbbx/s8ltQcQWHyb3D9iWDX5qQxfz3Qp/oIgGZqoEpT0wj5qIObhpubI EGoBoLHOtVpkmqdiOFeXlxgQ8I9Pl9o//lhkFK1x/Aj58ylQw/GNI4seU4kFXMRYp1aR QK6K4Xlnpj9iAS9pD3zyEKDbwWMghiwnPe4gx29KQKuQbhPrGQoENX9opGQdBrlP+PLd wELA== X-Gm-Message-State: ANoB5pnX8Ig1BDnM17UtprzlZPYO3emLlhWnDbs9nSTQ7qfGx9oNOm21 gOkCdbDdQwZss4TnsqwopJURlAZVBIfJBzM0JAw= X-Google-Smtp-Source: AA0mqf43xZOpm1qkjA1kFW1lYF59ZfpiHpVTX1/cVHppCxCLBgQmSrWj/wPJbgFaIXUOebDpLBjbGw== X-Received: by 2002:a17:903:2144:b0:188:a1eb:9a8a with SMTP id s4-20020a170903214400b00188a1eb9a8amr2285922ple.153.1668829136551; Fri, 18 Nov 2022 19:38:56 -0800 (PST) Return-Path: Received: from localhost ([2601:647:6400:20b0:cab2:9bff:fe88:d09c]) by smtp.gmail.com with ESMTPSA id u15-20020a170902e5cf00b00185402cfedesm4512139plf.246.2022.11.18.19.38.54 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Nov 2022 19:38:55 -0800 (PST) Message-Id: In-Reply-To: References: From: Michael Forney Date: Fri, 18 Nov 2022 09:11:48 +0000 To: 9front@9front.org List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: secure object-oriented hosting-scale realtime framework Subject: [9front] [PATCH 1/5] nusb: move audio-specific requests to nusb/audio Reply-To: 9front@9front.org Precedence: bulk --- 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