Repository navigation
Releases
cros-sofaudio v1.2.5
Verified Windows x64 driver package built from commit a6f9484c18034914cf0a45ce74114e06e38eef6b.
SHA-256: d0b42e791cbadf406773759843df30c28ffce95ee4f256407e293e19677b8da0
This package is test-signed and requires Windows Test Mode. See the included README.txt before installation.
What's Changed
- Serialize RIRB response matching with the interrupt lock by @isaiahscape in #1
New Contributors
- @isaiahscape made their first contribution in #1
Full Changelog: v1.2.4...v1.2.5
cros-sofaudio v1.2.4
Verified Windows x64 driver package built from commit 7fb1beb55a6bdc0a4f53071c21fd6297b784fac1.
SHA-256: 43348d395f22bb377652dd0f800c1505f92f52ef18a9e238a915fa7b3c9d838b
This package is test-signed and requires Windows Test Mode. See the included README.txt before installation.
Full Changelog: v1.2.3...v1.2.4
cros-sofaudio v1.2.3
Verified Windows x64 driver package built from commit 7e457e0347515a66841e4956e6043e71f26b14f9.
SHA-256: 4c6148b880492078637da1a5881e30edf5aae3103dd0113b45bef9d53622bc5d
This package is test-signed and requires Windows Test Mode. See the included README.txt before installation.
Full Changelog: v1.2.2...v1.2.3
cros-sofaudio v1.2.2
Verified Windows x64 driver package built from commit bfb94f476e0f5da3d6003d231ab73aac5adb1062.
SHA-256: 760bd52d5c97c10754cb805ce292441a65b4f21d1d14940d91efec45db90fe73
This package is test-signed and requires Windows Test Mode. See the included README.txt before installation.
Full Changelog: v1.2.1...v1.2.2
cros-sofaudio v1.2.1
Verified Windows x64 driver package built from commit d1de4f2dd5bda884fa493209f85ff3f16f71f941.
SHA-256: 1c3d12612ff6d402c49d07bea24c5aec743d09efb06c86fc6c8a2c6c43f8e4fd
This package is test-signed and requires Windows Test Mode. See the included README.txt before installation.
Full Changelog: v1.2...v1.2.1
cros-sofaudio v1.2: Intel Alder Lake SOF bootloader, sound output fixes & new installer
Important
Mandatory Requirements:
- Disable Vulnerable Driver Blocklist (
regedit): So that the user won't require disabling Secure Boot anymore just to install this driver, configure this inregedit:- Path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CI\Config (Optional: New > DWORD (32-bit))>VulnerableDriverBlocklistEnable=0- (Quick command via Administrator Command Prompt or PowerShell:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\CI\Config" /v VulnerableDriverBlocklistEnable /t REG_DWORD /d 0 /f)
- Path:
- Secure Boot: Disabling Secure Boot in UEFI firmware settings (e.g. MrChromebox UEFI setup) is no longer required if the registry setting above is applied. (If you choose not to apply the registry setting, Secure Boot must be disabled).
- 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).
What's Changed in v1.2
- Sound Open Firmware (SOF) Bootloader: Ported Linux kernel cAVS 2.5 DSP bootloader and IPC3 messaging to boot sof-adl.ri on Intel Alder Lake Chromebooks (e.g., Acer Chromebook Vero 514).
- Sound Output Fixes: Aligned Maxim MAX98373 DAI clocking, PLL lock, and pop-free staging for working speaker output.
- Jack Detection & Headphone Support: Added sequence-based init, FLL clock synthesis, and JackActiveLow polarity support for Nuvoton NAU88L25.
- Modernized Installer: Added PowerShell-based install.ps1 with automated hardware compatibility checks, test signing enrollment, and pre-creation of DspBoot log key.
- Updated Package Layout: Restructured driver distribution into Drivers/, Switcher/, and root automated install scripts.
Credits & Thanks
Special thanks to:
- @3kierz & Claude for diagnosing and fixing the sound output drivers!
- CoolStar for pioneering the csaudio architecture and sklhdaudbus.
- MrChromebox for coreboot / UEFI firmware.
Installation
- Download cros-sofaudio-v1.2.zip below.
- Extract the archive.
- Double-click Install.cmd (runs as Administrator).
- Reboot the laptop to complete setup.
cros-sofaudio v1.1.11: Align MAX98373 DAI with ADSP 32-bit TDM Mode 0 at 256x fs
Release v1.1.11 - Align MAX98373 DAI to 32-bit TDM Mode 0 at 256x fs (12.288 MHz) with Settling Delay
Summary
Fixes internal speaker audio silence on Alder Lake Chromebooks (Acer Chromebook Vero 514 / Google Volmar / Brya) by aligning the MAX98373 DAI configuration with the exact Intel ADSP topology hardware specification (sof-adl-max98373-nau8825.tplg).
Key Fixes
- Prioritize 8 Slots x 32-bit TDM Mode 0 at 256x fs (12.288 MHz BCLK):
- Inspection of the Intel Sound Open Firmware (SOF) topology binary confirms SSP1 is configured for 8 slots x 32 bits = 256 BCLKs per frame at 48 kHz (12.288 MHz BCLK) in TDM mode (SND_SOC_DAIFMT_DSP_B).
- v1.1.10 prematurely locked into standard 64x fs I2S due to a short 5ms evaluation window, causing the amplifier to mute upon receiving 256x fs TDM pulses from the ADSP.
- Candidate 0 is now prioritized to �xD8 / 0x08 (TDM0 32-bit slot, 256x fs).
- Class-D Charge Pump & PLL Settling Delay (30ms):
- Added a mandatory 30ms sleep (usleep_range(30000, 31000)) after R20FF_GLOBAL_SHDN = 1 as mandated by the MAX98373 silicon datasheet and Linux ALSA driver to ensure the analog power stages stabilize before passing audio.
- Interrupt Flag Clearance Prior to Clock Evaluation:
- Clears R200D, R200E, R200F with �xFF before clock lock evaluation to avoid false negatives from residual soft-reset flags.
- Added Class-D Amp Config (R2041 = 0x03):
- Standard amplifier configuration register matching reference implementations.
- Prevent Redundant Hardware Re-init:
- Guards Max98373_SetStreamState against mid-stream re-initialization when the audio stream is already active.
Installation
- Download cros-sofaudio-v1.1.11.zip and extract to a folder.
- Right-click install-drivers.cmd and select Run as administrator.
- Verify in DebugView that Candidate 0 (TDM0 32-bit slot, 256x fs) locks and enjoy audio playback.
cros-sofaudio v1.1.10: Fix MAX98373 Speaker Audio Output
Release v1.1.10 - Fix MAX98373 Speaker Audio Output via DAI Clock Auto-Lock & Proper Format Configuration
Summary
Resolves the issue on Alder Lake Chromebooks (Volmar / Acer Chromebook Vero 514 and other Brya models) where internal speaker amplifiers initialized successfully (reading revision ID �x43) but produced no audible sound during audio playback.
Root Causes Identified & Fixed
- Clock Ratio Mismatch (256x fs vs 64x fs):
- On Alder Lake with standard I2S topology, the Intel Audio DSP SSP outputs a 64x fs (3.072 MHz BCLK) clock signal.
- The driver previously fell into an ACPI condition that hardcoded clkRatio = 0x08 (256x fs = 12.288 MHz), causing the MAX98373 internal clock monitor to detect a 4x frequency mismatch and auto-mute the Class-D output stage.
- Dynamic Hardware DAI Auto-Lock Loop:
- Implemented an intelligent clock-locking routine that queries INT_STATE1 bit 1 (Clock Error) across candidate formats and ratios:
- Candidate 0: I2S 32-bit slot, 64x fs (3.072 MHz) [Alder Lake Brya default]
- Candidate 1: I2S 32-bit slot, 128x fs (6.144 MHz)
- Candidate 2: I2S 16-bit slot, 32x fs (1.536 MHz)
- Candidate 3: TDM0 16-bit slot, 128x fs (6.144 MHz)
- Candidate 4: TDM0 32-bit slot, 256x fs (12.288 MHz)
- Automatically confirms PLL lock before unmuting the power stage.
- Implemented an intelligent clock-locking routine that queries INT_STATE1 bit 1 (Clock Error) across candidate formats and ratios:
- Right Speaker Input Channel Enable (MAX98373_R202B_PCM_RX_EN):
- Fixed PCM_RX_EN from �x01 (Channel 0 only) to �x03 (Channel 0 and Channel 1 enabled). Previously, Channel 1 was disabled in hardware, causing the Right speaker (�x40) to receive complete silence.
- Eliminated TX Audio Bus Contention (MAX98373_R2020_PCM_TX_HIZ_EN_1):
- Disabled feedback TX during pure audio playback (R202C = 0x00) and set all TX slots to high-impedance (Hi-Z, �xFF), ensuring the amplifier does not drive the bus and contend with incoming playback audio from the Intel ADSP.
- Standby at Boot & Runtime Re-initialization:
- The amplifier now remains in clean standby at boot until the Intel DSP stream starts. When playback begins, the amplifier initializes with live BCLK present.
- Volume & Gain Optimization:
- Enabled unattenuated 0 dB digital volume and +18.0 dB analog full-scale gain (R203E = 0x0A) for rich audio output.
- IOCTL Mute Support:
- Added support for IOCTL_CSAUDIO_SET_MUTE in the sidecar IOCTL dispatch table.
Installation
- Download cros-sofaudio-v1.1.10.zip and extract to a folder.
- Right-click install-drivers.cmd and select Run as administrator.
cros-sofaudio v1.1.9: Working Speaker Output via OpenGMaxCodec
Release v1.1.9 - Fix Internal Speaker Sound Output via CoolStar OpenGMaxCodec Hardware Sequencing
Summary
Resolves the issue where internal speakers had no audible sound output on Chromebooks running Windows 11. By cross-referencing and porting the Maxim MAX98373 smart amplifier register sequencing from CoolStar's proven open-source coolstar/opengmaxcodec driver, all hardware timing, DAI formatting, and bus-routing mismatches have been resolved.
Root Causes Identified & Fixed
- DAI Format Mismatch (MAX98373_R2024_PCM_DATA_FMT_CFG):
- Intel SOF ADSP SSP DAI transmits TDM Mode 0 (DSP_A format) frames, not standard I2S.
- Configured MAX98373_PCM_FORMAT_TDM_MODE0 with 16-bit channel size (�x58), allowing the amplifier hardware to properly lock onto and decode digital audio frames.
- Clock Ratio Mismatch (MAX98373_R2026_PCM_CLOCK_RATIO):
- Replaced incorrect 64x fs ratio with 128x fs (�x06) to match the 4-slot 32-bit (or 8-slot 16-bit) TDM frame width (6.144 MHz BCLK at 48 kHz), preventing the MAX98373 internal clock monitor from auto-muting the amplifier.
- Digital Volume & Gain Staging (MAX98373_R203D_AMP_DIG_VOL_CTRL & �x203E):
- Fixed digital volume control to unmuted level 12 (�x0C, -6 dB full-scale) and analog path gain to �x00, preventing the amplifier from entering mute on playback start.
- TX Hi-Z Bus Contention:
- Moved voltage and current sense feedback from playback slots 0/1 to slots 4/5 (Right speaker) and 6/7 (Left speaker). Slots 0, 1, 2, and 3 are kept completely Hi-Z on TX, eliminating bus contention with the Intel DSP's RX audio playback.
- Synchronous Inter-Driver Callback Bridge:
- Integrated a listener for \CallBack\CsAudioCallbackAPI (CSAudioEndpointStart / CSAudioEndpointStop) directly into Max98373Audio, ensuring the amplifier wakes and sleeps synchronously with CsAudioIntcsof.
Installation
- Download cros-sofaudio-v1.1.9.zip and extract to a folder.
- Right-click install-drivers.cmd and select Run as administrator.
cros-sofaudio v1.1.8: Hotfix IRQL BSOD on Audio Stream Stop
Release v1.1.8 - Hotfix for IRQL BSOD on Audio Stream Stop
Root Cause
When audio playback stopped, paused, or finished, PortCls invoked CMiniportWaveRTStream::SetState(KSSTATE_STOP). The driver acquired m_PositionSpinLock (raising IRQL to DISPATCH_LEVEL) and called StopDMA() while holding the spinlock. StopDMA() invoked synchronous sidecar codec notification IOCTLs (IoGetDeviceInterfaces, IoGetDeviceObjectPointer, and KeWaitForSingleObject), which violate Windows WDM driver rules requiring IRQL == PASSIVE_LEVEL, causing Bugcheck �x0000000A (IRQL_NOT_LESS_OR_EQUAL) in
toskrnl.exe.
Fixes & Improvements
- CsAudioIntcsof/minwavertstream.cpp: Moved m_pMiniport->StopDMA() outside m_PositionSpinLock so DMA teardown and sidecar codec notifications execute safely at PASSIVE_LEVEL. m_PositionSpinLock now strictly guards position state variables.
- CsAudioIntcsof/csaudioapi.cpp: Added defensive KeGetCurrentIrql() > PASSIVE_LEVEL checks to SendIoctlToDeviceInterface(), NotifySidecarCodec(), and SendSidecarVolume() to safely reject synchronous IOCTL execution if called above passive level.
- CsAudioIntcsof/hw.cpp: Explicitly guarded sof_play() and sof_stop() sidecar codec notification calls with KeGetCurrentIrql() == PASSIVE_LEVEL.
- Directory.Build.props: Added dynamic UTC date stamping for DriverVer to prevent Inf2Cat signability validation failures in timezones ahead of UTC.
Installation
- Download cros-sofaudio-v1.1.8.zip and extract.
- Right-click install-drivers.cmd and select Run as administrator.