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.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30970 invoked from network); 29 Dec 2023 21:59:15 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 29 Dec 2023 21:59:15 -0000 Received: from duke.felloff.net ([216.126.196.34]) by 9front; Fri Dec 29 16:55:12 -0500 2023 Message-ID: Date: Fri, 29 Dec 2023 22:54:56 +0100 From: cinap_lenrek@felloff.net To: 9front@9front.org In-Reply-To: <1214862762.3763294.1703871281266@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: standard element injection generator Subject: Re: [9front] [patch] nusb/audio /dev entries fix v2 Reply-To: 9front@9front.org Precedence: bulk > I liked Sigrid's solution: There should be a new program that sits between the devices > like #A, nusb and mixfs and supplies a file system compatible with a #A. Something like this: isnt that basically what mixfs does? anyway, my concern about this change is that it will break an existing usecase where when you plug in usb soundcard that it becomes the default, without any other action needed. i agree that the way we do it right now makes it impossible to have multiple usb soundcards. but i really would like to preserve the property that stuff will just freaking work. so here you go: http://felloff.net/usr/cinap_lenrek/mixfs.diff on startup, it scans /dev/audio* which will pick up usb soundcards as well. (here, now it just freaking works!). the active audio device is available in /dev/volume: term% cat /dev/volume dev /dev/audio mix 100 100 you can then change it like: echo dev /dev/audioUxxxx > /dev/volume even while audio is currently playing. when the device errors on write (like when you pull the usb soundcard), it will rescan /dev/audio* and switch to whatever it finds first. -- cinap