AUDIO
Source snapshot · 11 November 2026

Standalone audio devices

Caller-scheduled duplex recovery

RecoveringDuplex extends the same explicit recovery ownership to an exact input/output pair, with fixed f32 configurations at equal nominal rates, scratch bound and a power-of-two 1..65536-frame ring. It validates both IDs/layouts/rates/ capacities without native enumeration or factory work. A first service opens fresh streams/FIFO/DSP and starts input before output. Missing either device, input/output backend errors or output DSP panic releases both streams before retry. A known-missing input stops the pair before output enumeration. Other enumeration errors retain the current pair. FIFO underflow/overflow and ordinary processor faults alone do not reopen. Failed open/start leaves no pair.

Disable/reopen drops the pair; reenable creates a fresh ring and processor on next service. Statistics sample current input/output counters independently; generation counts refer to pairs. Factory-owned state restoration, polling/ backoff, best-effort pause/destruction and thread/lifecycle limitations match the output recovery owner. No physical recording file, fallback, settings change, hotplug subscription, drift correction or sample synchronization is introduced. Matching nominal rates still permit independent-clock FIFO underflow/overflow.

CARGO_BUILD_JOBS=2 cargo run -p ravet-device-probe --locked -- \
  --validate-recovery-duplex-silence input-id output-id

Constructor tests cover pair/layout/rate/ring bounds without factory/native work; the shared controlled lifecycle tests cover release/retry ordering. The native probe checks absent exact input/output IDs without changing hardware and three silent generations with callback/fault/control-thread lifecycle counts. Samples remain only in each transient FIFO and are not retained or written. UMC1820 18-input/20-output 96 kHz evidence belongs in work status. Physical removal, real backend errors, clock drift, other devices/platforms and callback deadlines remain unvalidated. See decision 0091.