Stream: general

Topic: ALSA and Bluetooth UAPI support in linux-raw-sys and rustix


view this post on Zulip zRedShift (Mar 14 2026 at 06:39):

@Dan Gohman Hi! Would you be open to PRs to both of your crates that add support for both of these subsystems (as separate PRs)? They're traditionally handled by bluez and alsa-lib, but at work we use semi-custom implementations using your rustix crates, and I want to a. contribute back and b. remove some of the friction caused by not having upstream support for these UAPIs requiring workarounds that have very sharp edges (less so in ALSA because there's good IOCTL support, but bluetooth is painful because set/getsockopt need to be done through raw syscalls and rustix doesn't expose them).

view this post on Zulip zRedShift (Mar 14 2026 at 09:45):

I've opened a PR for the ALSA side: https://github.com/sunfishcode/linux-raw-sys/pull/181 — adds a sound feature with bindings from
<sound/asound.h> and the corresponding ioctl constants. Bluetooth will follow separately. Let me know if anything needs adjusting!


Last updated: Mar 23 2026 at 16:19 UTC