motu-pci-424
ENFR GitHub

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.

cuemix-studio, the mixes tab: fifteen channel strips with pan, solo, mute, faders and peak meters, mix bus 1 and its master
cuemix-studio, mixes tab, a simulated PCI-424 rig with no card.
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

    Kernel

    Written 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.

  • motu424-ctl

    Control, CLI

    The 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.

  • cuemix-studio

    Control, GUI

    The 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

    Install

    Detects pacman/apt/dnf/zypper/apk/xbps, pulls deps, installs via DKMS. Non-interactive under curl | sh.

  • Clean-room RE

    Toolkit

    A 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

    License

    Only 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.

cuemix-studio, Inputs tab: pre and post meters, trim, pad, phase, stereo and mute per input
Inputs, 24I/O in slot A.
cuemix-studio, Outputs tab: one fader, meter, mute and stereo link per output, the patchbay switch above
Outputs, with the patchbay switch.
cuemix-studio, Clock and format tab: clock source, sample rate, AudioWire slots and card link
Clock & format, AudioWire slots.
cuemix-studio as an 828mk3, Channel and dynamics tab: stereo width, compressor and leveler
828mk3: channel and dynamics.
cuemix-studio as an 828mk3, EQ tab: the response curve over seven bands
828mk3: seven-band EQ.
cuemix-studio as an 828mk3, Reverb tab: reverb time, early reflections and crossover
828mk3: reverb.

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.

FindingValueState
The boarda TI TMS320C6412 DSP in PCI boot mode: window A = its peripheral registers, window B = its memory, I/O BAR = its host port& 0xff800000Confirmed
Interrupt paththe DSP raises INTREQ; pending = HSR bit 1, ack = INTRST in RSTSRC0x10 → 0x01c00000Confirmed
TransportDSP bus-master DMA from a host ring; the DSP reports the bus address it has reachedring → +0x5cConfirmed
Bring-upDSPINT releases the loaded program, which publishes its audio block in the mailbox (run on a real card)0x3fffc → 0x6facConfirmed
Breakout channel mapcounts are a runtime descriptor blob from the attached interface, not a static tableruntime descriptorConfirmed
Device object modelaudio object is a global singleton; windowed-MMIO manager + DMA common-buffer sub-objectsA @ 0x61f50Confirmed
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_firmwareConfirmed
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 observebase + 0x64Card

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.

  1. motu424_main.rs

    PCI attach, BAR roles, DMA mask, IRQ vector, and the teardown order.

  2. alsa.rs

    ALSA card and PCM ops, over bindings generated from the kernel headers: open/prepare/trigger/pointer become hw.rs calls.

  3. hw.rs

    Registers, 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.

One line
# 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
Clone & build
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.

  1. 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.

  2. Done

    Register, IRQ & transport model

    DSP windows, IRQ ack, bus-master ring, the full IOCTL interface.

  3. Done

    Firmware load on a real card

    FPGA image and DSP program loaded, audio block published; the driver now does it with request_firmware().

  4. 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.

  5. 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.

  6. 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.