mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-12-02 07:33:45 +08:00
c9adedad05
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>