Hi, I got sound playback working on 64-bit GNU/Hurd on real hardware, using NetBSD's audio drivers in a rump kernel, without patching the Hurd. Sharing in case it is useful for anyone working on sound support.
Setup: - ThinkPad T400 (Intel HD Audio, ICH9), stock BIOS - Guix System on x86_64-gnu, hurd 0.9.git20261127, gnumach 1.8+git20261028 - Guix's rumpkernel package (0-20250111) already builds the needed components: rumpdev_audio, rumpdev_pci_hdaudio, rumpdev_hdaudio_hdafg What I did: A small test program links the rump components statically (--whole-archive, like rumpdisk/rumpnet), opens /dev/audio0 inside its own rump kernel and writes a 440 Hz tone for 3 seconds, using the default /dev/audio mode (8 kHz, mono, mu-law), so no ioctls are needed. Link line: rumpdev_audio, rumpdev_hdaudio_hdafg, rumpdev_pci_hdaudio, rumpdev_pci, rumpvfs_nofifofs, rumpvfs, rumpdev, rump, rumpuser + -lirqhelp -lpciaccess -lpthread Notes: - rump headers expect <stdint.h> and <sys/types.h> to be included first. - rumpvfs_fifofs pulls in the socket layer (soo_ioctl, socreate, unp_connect2...), rumpvfs_nofifofs avoids that. - rump's PCI code on the Hurd needs libirqhelp. Result: The tone plays through the speakers, and the write takes about 3 seconds, i.e. the hardware consumes samples at the real rate. It coexists with rumpdisk through pci-arbiter. Limitation: each program brings up its own rump kernel and owns the HDA controller, so only one client at a time. A translator owning the device and exposing /dev/audio (like rumpdisk does for disks) would lift that. I have attached the test program and the Guix package. Thanks, Tristan
tone.c
Description: Binary data
rump-tone.scm
Description: Binary data
