Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Apr 2025 21:08:59 +0200
From:      Christos Margiolis <christos@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        freebsd-multimedia@freebsd.org, freebsd-desktop@freebsd.org
Subject:   [Call for testing] sound: Implement /dev/dsp as a router device
Message-ID:  <l2cfedicapbvj374ayetumvgwef5tyxwqy6kj6bapaprzkkxvt@edzltnq3km3a>

index | next in thread | raw e-mail

I've been working on a patch [1] to re-implement /dev/dsp as a
router/virtual device. The commit message in the review explains all the
high-level details and reasons behind the patch. This is the first of a
series of patches I'm working on.

For regular users, the main functional difference is that with this
patch, /dev/dsp is an actual router device (like when using
virtual_oss), which means that we have hot-swapping (i.e., changing the
default device and routing audio to it during IO without needing to
close and re-open /dev/dsp) built into sound(4).

Feel free to test the patch and please let me know if there's anything
that breaks or could be improved. You can play around with it just by
recording/playing audio as you always do, try some hot-swaps,
hot-(un)plugs, and anything that can stress test it. Just make sure you
open /dev/dsp, which should be the default for most applications anyway.

Christos

[1] https://reviews.freebsd.org/D49216


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?l2cfedicapbvj374ayetumvgwef5tyxwqy6kj6bapaprzkkxvt>