MOTU PCI‑324 / PCI‑424, rebuilt for Linux.
A from-scratch ALSA kernel driver, CueMix-style control apps, and a clean-room reverse-engineering of a sound card the vendor never documented.
curl -fsSL https://raw.githubusercontent.com/devfrp/Linux-motu-pci-424/main/get.sh | sh
AudioWire host card, out-of-tree Linux driver. Source
An undocumented card, brought up in the open
The PCI-324/424 is a host card for MOTU AudioWire interfaces: the 2408, 24I/O, 828, HD192, 896HD and friends. There is no vendor documentation, so the register map and transport are recovered from the Windows driver and the card’s own DSP program, and checked on a real PCI-424: the card now boots under Linux. The PCI, DMA, IRQ and ALSA plumbing is in place; everything still uncertain is confined to two files, so confirmed facts land in exactly one place.
- Channel 1
- 24-bit / 3 bytes
- Rate families
- 1× / 2× / 4×
- Interfaces
- 2408, 24I/O, 828, HD192, 896HD
- Status
- boots under Linux
What ships
A driver, two control apps and the RE tools, all of it in Rust, and an installer that works on any distribution.
ALSA module
KernelWritten in Rust, with no C: the ALSA bindings are generated from the kernel’s own headers at build time. Clean three-layer split, DKMS-packaged so it rebuilds itself across kernel upgrades. Needs a kernel built with Rust support. Ported from the C driver that ran on a card; the port has not run on one yet.
Control, CLImotu424-ctlThe Linux CueMix FX over alsa-lib, in Rust like every tool here: clock source, sample rate, per-input trim/pad/phase, and the input×bus monitor matrix.
Control, GUIcuemix-studioThe mixing console, one Rust binary for Linux, macOS and Windows: drives the card through motu424-ctl on Linux, runs a simulated rig anywhere else, and adds the 828mk3 EQ, dynamics and reverb pages.
Any distro
InstallDetects pacman/apt/dnf/zypper/apk/xbps, pulls deps, installs via DKMS. Non-interactive under curl | sh.
Clean-room RE
ToolkitA capstone cross-referencer, a C++ vtable resolver and a C64x disassembler, all Rust; every recovered fact is written down with its evidence.
Facts-only, GPL
LicenseOnly offsets, formats and sequences enter the GPL-2.0 sources. Vendor binaries are never redistributed.
The console, tab by tab
cuemix-studio with its simulated rig, as it runs without a card.






What the reverse-engineering pinned
Recovered from the vendor Windows driver with objdump, a capstone cross-referencer and the rz-ghidra decompiler, from the card’s C64x DSP program, and checked on a real PCI-424.
| Finding | Value | State |
|---|---|---|
| The boarda TI TMS320C6412 DSP in PCI boot mode: window A = its peripheral registers, window B = its memory, I/O BAR = its host port | & 0xff800000 | Confirmed |
| Interrupt paththe DSP raises INTREQ; pending = HSR bit 1, ack = INTRST in RSTSRC | 0x10 → 0x01c00000 | Confirmed |
| TransportDSP bus-master DMA from a host ring; the DSP reports the bus address it has reached | ring → +0x5c | Confirmed |
| Bring-upDSPINT releases the loaded program, which publishes its audio block in the mailbox (run on a real card) | 0x3fffc → 0x6fac | Confirmed |
| Breakout channel mapcounts are a runtime descriptor blob from the attached interface, not a static table | runtime descriptor | Confirmed |
| Device object modelaudio object is a global singleton; windowed-MMIO manager + DMA common-buffer sub-objects | A @ 0x61f50 | Confirmed |
| FPGA firmwareno PROM: the host clocks the image out through the DSP’s GPIO, then loads the DSP program (run on a real card) | request_firmware | Confirmed |
| CueMix mixer sinkcoefficients flushed by dirty range to a card-reported base | [dev + 0x9c] | Confirmed |
| Rate parameter & clock-source selectinterface/card-bound: the last values need a card to observe | base + 0x64 | Card |
Signal path
The PCI and ALSA layers stay hardware-agnostic; every register offset and encoding lives only in the bottom node. All three are Rust.
motu424_main.rsPCI attach, BAR roles, DMA mask, IRQ vector, and the teardown order.
alsa.rsALSA card and PCM ops, over bindings generated from the kernel headers: open/prepare/trigger/pointer become hw.rs calls.
hw.rsRegisters, firmware load, DMA ring, IRQ ack. The hardware truth lives here.
Install
The one-liner fetches the sources and runs the installer: dependencies, DKMS module, tools. Add --gui to build the console.
# deps + DKMS module + tools + load curl -fsSL https://raw.githubusercontent.com/devfrp/Linux-motu-pci-424/main/get.sh | sh # with the console (cuemix-studio) curl -fsSL …/get.sh | sh -s -- --gui
git clone https://github.com/devfrp/Linux-motu-pci-424 cd motu-pci-424 ./install.sh # or: make && make load motu424-ctl # CueMix status (CLI) cuemix-studio # mixing console (--gui)
Where it stands
The card boots under Linux. What remains is the format of the audio on the host ring, then playback, capture and rate changes on a real card.
- Done
Framework & tooling
PCI/DMA/IRQ/ALSA scaffolding, cross-distro installer, CLI + GUI, RE toolchain. The driver and every tool are Rust; the Rust driver has not run on a card yet.
- Done
Register, IRQ & transport model
DSP windows, IRQ ack, bus-master ring, the full IOCTL interface.
- Done
Firmware load on a real card
FPGA image and DSP program loaded, audio block published; the driver now does it with request_firmware().
- Done
Device model & bring-up path
The whole device-extension struct, the audio object & sub-objects, and the handshake that publishes the runtime audio base.
- Partial
Clock & rate encoding
Rate families, enable and increment recovered; clock-source select and the rate parameter are interface-bound, their values need a card.
- Needs card
First sound & validation
Frame layout on the ring, playback/capture at every rate, the CueMix mixer, soak tests: the last mile to sound.