mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-05 08:02:40 +00:00
A TERM to a running mu300-voice call/demo/echo left its aplay/arecord holding the voice PCM, and the next run failed with "Resource busy". Every player is now a waited-for background child that TERM, INT, HUP and exit end; a busy PCM held by a leftover of an earlier run is ended and retried, anything else is reported. An open that fails with EIO is tried once more (a fresh open, never a restart after an xrun). The EIO itself: each play into FE_ST_VOICE_PCM_P leaves two KCTL_SET replies the driver never waits for, and aud_recv_cmd() failed a STARTUP on the first reply for another command, so five queued failed the next FE_ST_DUMP open. A reply for another command is now dropped and the wait goes on within the same timeout; the drain reads until the cache is empty. The same change for 5.4 as kernel/patches/audio-sipc-stale-reply.patch. Both reproduced on F50-B (7.2.11) without a call; the script fix measured there, the driver fix unit-tested against a fake message cache and built for 7.2.11 and 5.4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE