Repository navigation
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.