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 7099 invoked from network); 19 Nov 2022 03:43:14 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 19 Nov 2022 03:43:14 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Received: from mail-pg1-f174.google.com ([209.85.215.174]) by 9front; Fri Nov 18 22:39:02 -0500 2022 Received: by mail-pg1-f174.google.com with SMTP id v3so6607969pgh.4 for <9front@9front.org>; Fri, 18 Nov 2022 19:38:59 -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=3oRBwTyl/9CfE/IRGv0HzuZtUIBKtvm8UhiPf4Iz37I=; b=KCTo3iGDexE6kFkx+JuuG7WqMNgtjk6VL0YiK2WqBWd9CdbyTLBHrSaNeTSxTyImdb Og/Tu2ptmPUjdf/1hTpAQfxRzyexomhidLI0QopV3RoaQ/f9e4zeEk+9rqDugGhF22Cb gjQ+ezTAUZy5Tk7Z8yyi3vcOzEDS34A0pdO0o8IekygrgdyvZbEXNUVEUyE2vLwRuKLt KInNO0yuAZ8Elc0KenSdmTJEYDE40lMbf6NxIU7zckz2UIHzAEs+4QPqj08nvh0niR+1 EbsoQmgMOJqHh3vNoCsZFD0679+I3YRpg9NK53c6bGAYLdAeejUEGoX9YJQFBA23RiKi sYsQ== 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=3oRBwTyl/9CfE/IRGv0HzuZtUIBKtvm8UhiPf4Iz37I=; b=igcEhZb4dekUJ5pLyG4gblO+XHK/VJs5QDnlB+3Af5Jt3n/4D6dhuNKNVnRGb7nrmC tJ2+4Gzq48eQ2qnzJAQ9mkIWNLl3sOUspzJdPuE0cKuluH4BSeH3J/BLrxkoScNduZLW pdaV0jj7SRVzkJigN4zG4fh3CbrTQJipoj0yyNiYji13WudIP6OqbbrkRaXgmITy8VRp H3Tmd8ktuMKGcHG2EOP0zpPzSwp1kniRSLdDYhwX79BwNFkztAf4tDKZCT7UbHgzbwL+ kcbB4GvTqX3ahsmo9nhoyczEOS+5A25ePdr9tjAwPuXwLadbR8V1O7563ucP5oeSgYRc Z3jQ== X-Gm-Message-State: ANoB5plhQHsXG31Ife2zzh4QJOuxmceaaARsx6887FHi8vlpYisBd/dM 8PVm2ZohOyZ7GaeE3A9Bh9TbzknxZ5PsRi4QJEA= X-Google-Smtp-Source: AA0mqf45/3fZUULAXJgHx8PbA7xhPJ3s/kUgFx7ES9RP7koLA0phkdvg0om6mu/k1hr+vo9yDAFtmg== X-Received: by 2002:a63:ea58:0:b0:476:a62c:a2bc with SMTP id l24-20020a63ea58000000b00476a62ca2bcmr9243843pgk.320.1668829138702; Fri, 18 Nov 2022 19:38:58 -0800 (PST) Return-Path: Received: from localhost ([2601:647:6400:20b0:cab2:9bff:fe88:d09c]) by smtp.gmail.com with ESMTPSA id u66-20020a626045000000b0053b723a74f7sm4059892pfb.90.2022.11.18.19.38.57 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Nov 2022 19:38:57 -0800 (PST) Message-Id: <902cf116d7f64dc00d58b71f97a9beb1a1c8da41.1668828454.git.mforney@mforney.org> In-Reply-To: References: From: Michael Forney Date: Fri, 18 Nov 2022 09:11:49 +0000 To: 9front@9front.org List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: abstract TOR rails proxy-aware realtime-java-aware full-stack optimizer Subject: [9front] [PATCH 2/5] nusb/audio: remove code for bi-directional endpoint Reply-To: 9front@9front.org Precedence: bulk Isochronous endpoints are never bi-directional. --- sys/src/cmd/nusb/audio/audio.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/sys/src/cmd/nusb/audio/audio.c b/sys/src/cmd/nusb/audio/audio.c index 4018352022..66e77da713 100644 --- a/sys/src/cmd/nusb/audio/audio.c +++ b/sys/src/cmd/nusb/audio/audio.c @@ -103,7 +103,7 @@ setupep(Dev *d, Ep *e, int speed) Range *f; for(;e != nil; e = e->next){ - if(e->dir!=dir && e->dir!=Eboth) + if(e->dir!=dir) continue; c = e->iface->aux; if(c == nil) @@ -177,7 +177,7 @@ Setup: return; } closedev(d); - if(audioepin != nil && audioepin != audioepout) + if(audioepin != nil) if(d = setupep(audiodev, audioepin, speed)) closedev(d); audiofreq = speed; @@ -243,14 +243,6 @@ main(int argc, char *argv[]) continue; audioepout = e; break; - case Eboth: - if(audioepin != nil && audioepout != nil) - continue; - if(audioepin == nil) - audioepin = e; - if(audioepout == nil) - audioepout = e; - break; } if((ed = setupep(audiodev, e, audiofreq)) == nil){ fprint(2, "setupep: %r\n"); -- 2.37.3