cros-sofaudio provides open-source Windows 11 Kernel-Mode Driver Framework (KMDF) audio drivers for Intel-based Chromebooks running Sound Open Firmware (SOF) audio architectures with:
- Maxim Integrated MAX98373 Class-D Smart Power Amplifiers (internal stereo speakers)
- Nuvoton NAU88L25 High-Performance Audio Codec (3.5mm headphone jack, TRRS headset microphone, and hardware jack detection)
The internal microphone array does not use the NAU88L25. Volmar routes its
two PDM microphones directly into the Intel audio DSP's DMIC0 interface
(mic-tplg="_2ch_pdm0"); only the analog headset microphone passes through the
NAU88L25 on SSP0.IN.
Important
Mandatory Requirements:
- Secure Boot: If
bcdedit /set testsigning onis rejected, disable Secure Boot in UEFI firmware settings (for example, MrChromebox UEFI setup), then enable Test Mode again. - Enable Test Signing: Windows must run in Test Mode (
bcdedit /set testsigning on) because these custom kernel-mode drivers are test-signed. The installer checks this and can turn it on automatically (a reboot is required).
On modern Chromebooks running coreboot / UEFI firmware (such as MrChromebox UEFI), the audio subsystem is routed through an Intel Audio DSP (cAVS / ACE) offloading to I2S / TDM serial buses controlled via I2C (SPB) and ACPI GPIO interrupts:
+---------------------------------------+
| Windows 11 Audio Engine |
| (WASAPI / PortCls) |
+-------------------+-------------------+
|
+-------------------+-------------------+
| Intel Audio DSP / SOF WaveRT Driver |
| (e.g., csaudiointcsof / sklhdaudbus) |
+---------+-------------------+---------+
| I2S / TDM Bus | Sidecar / CSAudio IOCTL
+-------------------+----+ +-----+--------------------+
| | | |
+-----------v------------+ +--------v--------v-----+ +-----------------v---------+
| Maxim MAX98373 Amp | | Nuvoton NAU88L25 | | Windows Sidecar / Bus |
| Driver (Max98373Audio) | | Driver (Nau8825Audio) | | Interface Notifications |
+-----------+------------+ +--------+--------+-----+ +---------------------------+
| I2C (SPB) | I2C | GPIO IRQ
| (Addr 0x31/0x32) | (0x1A) | (Jack Detect)
+-----------v------------+ +--------v--------v-----+
| Hardware: MAX98373 | | Hardware: NAU88L25 |
| Stereo Speakers | | 3.5mm Headphone Jack |
+------------------------+ +-----------------------+
- SklHdaudBus.sys:
- Intel AudioDSP / HD Audio PCI Controller Bus Driver (adapted from CoolStar).
- Manages Intel PCH PCI controllers (Skylake through Meteor Lake).
- Parses ACPI NHLT (Non-HD Audio Link Table) blobs and manages cyclic DMA stream allocation.
- Exposes
GUID_ADSP_BUS_INTERFACEon child PDOCSAUDIO\ADSP&CTLR_VEN_8086&CTLR_DEV_%04X.
- CsAudioIntcsof.sys:
- Intel Sound Open Firmware (SOF) PortCls WaveRT Miniport Driver.
- Connects to
SklHdaudBusviaGUID_ADSP_BUS_INTERFACEto stream raw audio samples. - Registers 4 WaveRT endpoints: Speakers (MAX98373), Headphones (NAU88L25), Internal Digital Mic Array, and Headset Mic Jack (NAU88L25).
- Creates independent SOF capture pipelines for the internal two-channel PDM array (
DMIC0) and the headset microphone (SSP0.IN). - Coordinates real-time hardware stream states with codec sidecars over
\CallBack\CsAudioCallbackAPIandGUID_DEVINTERFACE_CSAUDIO_CODEC.
- Max98373Audio.sys:
- ACPI Hardware IDs:
ACPI\MX98373,ACPI\MAX98373 - Full 16-bit register address, 8-bit data I2C transaction engine over Windows SPB.
- Channel role routing (Left, Right, Mono Mix) based on ACPI
_UIDor slot properties. - Pop-free soft-mute and a fast hardware peak limiter for clipping protection.
- Power management (
D0Entry/D0Exit) with low-power global shutdown standby.
- ACPI Hardware IDs:
- Nau8825Audio.sys:
- ACPI Hardware IDs:
ACPI\10508825,ACPI\NVTN2000,ACPI\NAU8825 - 16-bit register, 16-bit data I2C engine.
- FLL clock synthesis for 48kHz audio playback and capture.
- Hardware Jack Detection via ACPI GPIO Interrupt (
DIRQLISR +PASSIVE_LEVELWorkItem). - Auto-differentiation between 3-pole (TRS) stereo headphones and 4-pole (TRRS) headsets, including CTIA/OMTP Mic/GND routing from the hardware detector.
- Real-time Windows Audio endpoint switching notification.
- ACPI Hardware IDs:
- Download the latest
cros-sofaudio-*.zipfrom the Releases page. - Extract the ZIP archive on your Chromebook.
- Double-click
Install.cmd(it requests administrator rights automatically).- It validates hardware compatibility, trusts the security certificate, pre-configures audio registry settings, installs all drivers via
pnputil, and registers the auto-switcher service. It does not change the Microsoft Vulnerable Driver Blocklist.
- It validates hardware compatibility, trusts the security certificate, pre-configures audio registry settings, installs all drivers via
- Reboot your laptop to start the newly installed drivers.
- To uninstall: Double-click
Uninstall.cmd(as administrator) to remove all drivers and the switcher service.
- Windows 11 (x64)
- Visual Studio 2022 or Build Tools with C++ workload
- Windows Driver Kit (WDK) 10.0.22621+ or newer
- The private key matching
ChromebookAudio.cerinstalled in the Current User or Local MachineMycertificate store (release maintainers can select another installed code-signing certificate withSIGN_CERT_SHA1)
Run the automated build script:
build.cmdThe script builds all driver projects in Release|x64, signs them, exports the exact public signer certificate used by the build, and verifies every catalog before reporting success. Output packages are written to x64\Release\.
.github/workflows/build.yml builds and packages the complete installer on the pinned windows-2022 image using Visual Studio 2022 (v143), Windows SDK/WDK 10.0.26100.0, KMDF 1.33, and Release|x64.
Trusted CI builds read the private PFX from the encrypted repository secrets DRIVER_SIGNING_PFX_BASE64 and DRIVER_SIGNING_PFX_PASSWORD, verify that it matches the public ChromebookAudio.cer, sign every driver/catalog/tool, delete the temporary PFX, verify the extracted ZIP, and upload cros-sofaudio-<version>.zip as a workflow artifact. The private key is never committed or packaged. CI artifacts are test-signed and still require Windows Test Mode, just like local development builds.
Pushing a semantic version tag such as v1.2.1 publishes that verified ZIP and SHA256SUMS.txt as a GitHub Release. A maintainer can instead run the workflow manually, enter a v* package version, and enable Publish release. Ordinary main builds remain Actions artifacts only.
Configure the signing secrets under Repository Settings → Secrets and variables → Actions:
# Run locally; paste the clipboard into DRIVER_SIGNING_PFX_BASE64.
[Convert]::ToBase64String([IO.File]::ReadAllBytes('C:\path\to\ChromebookAudio.pfx')) | Set-ClipboardCreate DRIVER_SIGNING_PFX_PASSWORD with the PFX export password. The PFX must contain the private key matching the committed ChromebookAudio.cer; the workflow fails before signing if the thumbprints differ.
The speaker path defaults to -2 dB, approximately 79.4% linear amplitude, and the MAX98373 hardware limiter catches peaks at -2 dBFS with a fast attack and smooth release. These settings reduce clipping without changing the validated amplifier path gain. They can be tuned under HKLM\SOFTWARE\CrosSofAudio with SpeakerDspAttenDb and SpeakerLimiterThresholdDb (DWORDs; reboot after changing).
The current SOF speaker pipeline is PCM -> volume -> SSP1; it does not contain a FIR/IIR equalizer. No arbitrary tonal EQ was added without measured, device-specific coefficients.
The bundled Tools\cros_audio_test.exe utility connects to both driver interfaces via IOCTLs:
- Reads silicon revision IDs (
0x21FFfor MAX98373,0x58for NAU88L25). - Real-time asynchronous background thread monitoring 3.5mm jack insertion/ejection.
- Tests stream start/stop and pop-free volume ramping.
This project builds heavily upon and incorporates open-source source code and reverse-engineering research by:
-
- Original creator of
sklhdaudbusand pioneer of thecsaudioWindows audio architecture for Chromebooks. - Author of coolstar/sklhdaudbus, coolstar/csaudioacp3x, and coolstar/csaudiosstcatpt.
- CoolStar's reverse-engineering of the Intel HD Audio / ADSP bus, ACPI NHLT parsing, and decoupled codec sidecar callback mechanism is the foundation for this driver suite. Full credit and gratitude go to CoolStar for making Windows on Chromebook audio possible!
- See CREDITS.md for full details.
- Original creator of
-
Kier (@3kierz) & Claude for diagnosing and fixing the sound output drivers.
-
MrChromebox for coreboot / UEFI firmware.
-
The Sound Open Firmware (SOF) Project & Linux ALSA Team for kernel hardware topologies and specs.
This project is licensed under the MIT License, with individual components retaining their respective upstream open-source licenses:
- Core Drivers, Switcher & Utilities: MIT License © 2026 Leonardo (The Scape Network).
SklHdaudBus: BSD 3-Clause License © CoolStar.CsAudioIntcsof(PortCls / WaveRT base): MIT License © Microsoft Corporation.- SOF DSP Firmware (
sof-*.ri): SOF Firmware Release Licence (BSD-3-Clause + Patent Grant) © Intel Corporation.