Files
sunnypilot/openpilot/system
nayan c9adedad05 soundd/micd: recover from audio device failures without blocking engagement
micd and soundd can fail to start or go silent in the field
(commaai/openpilot#36088): a transient portaudio/mic device failure leaves
micd broadcasting valid=True soundPressure flatlined at zero, soundd decays
its ambient-volume filter to MIN_VOLUME, and manager keeps the dead process
marked shouldBeRunning until the device is power cycled — blocking engage
with "micd soundd process not running".

- micd: mark soundPressure/rawAudioData invalid while the stream is down,
  automatically re-open the stream (portaudio reinit + InputStream retry),
  and flag input overflow status in rawAudioData validity
- soundd: only adapt volume from valid soundPressure; freeze instead of
  decaying to silence when mic data goes stale, and log the transition
- manager: add opt-in supervision to Python/Native processes so a dead
  process is reaped and restarted on the next manager loop instead of
  lingering dead; enable it for micd and soundd

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-29 09:17:53 -05:00
..
2026-11-29 09:17:53 -05:00
2026-11-01 09:04:02 -10:00
2026-11-27 15:25:46 -08:00
2026-11-01 22:47:24 -10:00
2026-11-29 09:16:11 -05:00
2026-11-01 09:04:02 -10:00