From 2ecb3e327acd49acf2700087022b6bdae660f10b Mon Sep 17 00:00:00 2001 From: Stamate Viorel Date: Wed, 10 Jun 2026 14:33:34 +0200 Subject: [PATCH] Disable USB autosuspend for the CM6206 USB audio device The CM6206 provides the digital outputs for sources 1-3; with kernel USB autosuspend active it can power down between uses and glitch on resume. Pin power/control to 'on' from the same udev rule that already names the card. Signed-off-by: Stamate Viorel Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 1 + config/85-amplipi-usb-audio.rules | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59dc9acad..cc553efe5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * Upgrade from Logitech Media Server 8.5.2 to Lyrion Music Server 9.0.3 * Added in-place preamp recovery when I2C writes fail persistently * Fixed all loopback dmix devices sharing one ipc_key in asound.conf, which made loopback playback devices intermittently fail to open with EINVAL (#957) + * Disabled USB autosuspend for the CM6206 USB audio device * Web App * Add warning for older versions of the webapp running on newer backends diff --git a/config/85-amplipi-usb-audio.rules b/config/85-amplipi-usb-audio.rules index 8f2ad7813..45c4fb3f6 100644 --- a/config/85-amplipi-usb-audio.rules +++ b/config/85-amplipi-usb-audio.rules @@ -1 +1,4 @@ ACTION=="add", SUBSYSTEM=="sound", DEVPATH=="/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3\:1.0/sound/card?", ATTR{id}="cmedia8chint" + +# Disable USB autosuspend for CM6206 audio codec to prevent mid-stream suspend hang +ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0d8c", ATTR{power/control}="on"