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=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 7170 invoked from network); 20 Dec 2023 16:46:13 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 20 Dec 2023 16:46:13 -0000 Received: from wopr.sciops.net ([216.126.196.60]) by 9front; Wed Dec 20 11:44:47 -0500 2023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sciops.net; s=20210706; t=1703090598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=vo3Gsg6eFu0vcK3pTd4H7JmGq5RLRlG5abDvkfq1l88=; b=h1V/SSbcJEGr43M7G3IZWBPTdcZUWXBY/bbg1cReNajxbTn531TfmnjzsY/J20vry/jBzG QD3Sxiw6P5I74CYsvR/wUvDEkhqvZPY788bzF85yCvoA9siIoeRvJcSPNrcxeBYbvtDmNe +m3w13APcnAaYy/bKTNoO9uGl072YEU= Received: by wopr.sciops.net (OpenSMTPD) with ESMTPSA id 2d434b0c (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for <9front@9front.org>; Wed, 20 Dec 2023 08:43:18 -0800 (PST) Message-ID: <7408ADB29853D60644FA44A89191C3B8@wopr.sciops.net> Date: Wed, 20 Dec 2023 17:44:35 +0100 From: qwx@sciops.net To: 9front@9front.org In-Reply-To: <1088817250.3535546.1703071432843@comcenter.netcologne.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: social webscale rails persistence CSS configuration storage configuration controller Subject: Re: [9front] [PATCH] Fix nusb/audio /dev entries Reply-To: 9front@9front.org Precedence: bulk On Wed Dec 20 12:23:12 +0100 2023, meyer.arne83@netcologne.de wrote: > Hello, > > commit 4bc5793a removed #u from default device binds. Now #u gets bound after #A in nusbrc. Because nusb/audio uses #u to provide its /dev/audio entries this means they are shadowed by the #A device and never picked up. So use 'bind -b' in nusbrc to prefer nusb/audio over #A. > > Greetings, > Arne Hi Arne, Thanks for the patch. One could argue against the previous behavior -- what is your use case? Here are some arguments against it: - It pulls the rug under you by automatically changing the device you write audio to, and imho the interaction between #u, #A and mixfs gets confusing - If more devices are plugged in, only the last one would be used, switching output yet again - If the usb device is disconnected, audio will break for programs currently writing to /dev/audio and they would have to reopen it It all amounts to having more control over what happens. Obviously, the old behavior might also be desired. It might make more sense to have the users themselves control which device to use as needed. This could be done automatically by watching /dev/usbevent and switching accordingly, for instance in a machine-specific termrc or the user profile, and possibly only for a given device. One could also always rearrange the namespace to get #u on top as before. What do you think, would that work in your case? Cheers, qwx