Skip to content

cros-sofaudio v1.1.8: Hotfix IRQL BSOD on Audio Stream Stop

Choose a tag to compare

@isaiahscape isaiahscape released this 21 Oct 16:40
· 27 commits to main since this release

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

  1. Download cros-sofaudio-v1.1.8.zip and extract.
  2. Right-click install-drivers.cmd and select Run as administrator.