From 35d399ed7220090fb8548091767475dd4d82ce12 Mon Sep 17 00:00:00 2001 From: firestarsdog <229254897+firestarsdog@users.noreply.github.com> Date: Mon, 12 Jan 2026 16:01:52 -0500 Subject: [PATCH] Upstream sound handling, sound check removal match upstream for sound handling Add to sound check removal --- selfdrive/controls/controlsd.py | 7 +------ selfdrive/controls/lib/events.py | 5 ----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 5ea008744..3d767e651 100644 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -44,7 +44,7 @@ CAMERA_OFFSET = 0.04 REPLAY = "REPLAY" in os.environ SIMULATION = "SIMULATION" in os.environ TESTING_CLOSET = "TESTING_CLOSET" in os.environ -IGNORE_PROCESSES = {"loggerd", "encoderd", "statsd"} +IGNORE_PROCESSES = {"loggerd", "encoderd", "statsd", "micd", "soundd"} ThermalStatus = log.DeviceState.ThermalStatus State = log.ControlsState.OpenpilotState @@ -117,9 +117,6 @@ class Controls: self.is_metric = self.params.get_bool("IsMetric") self.is_ldw_enabled = self.params.get_bool("IsLdwEnabled") - # detect sound card presence and ensure successful init - sounds_available = HARDWARE.get_sound_card_online() - car_recognized = self.CP.carName != 'mock' # cleanup old params @@ -173,8 +170,6 @@ class Controls: else: self.startup_event = get_startup_event(car_recognized, not self.CP.passive, len(self.CP.carFw) > 0) - if not sounds_available: - self.events.add(EventName.soundsUnavailable, static=True) if not car_recognized: self.events.add(EventName.carUnrecognized, static=True) if len(self.CP.carFw) > 0: diff --git a/selfdrive/controls/lib/events.py b/selfdrive/controls/lib/events.py index d97a0ff8b..670cc5f90 100755 --- a/selfdrive/controls/lib/events.py +++ b/selfdrive/controls/lib/events.py @@ -779,11 +779,6 @@ EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = { Priority.LOWER, VisualAlert.none, AudibleAlert.none, .2, creation_delay=600.) }, - EventName.soundsUnavailable: { - ET.PERMANENT: NormalPermanentAlert("Speaker not found", "Reboot your Device"), - ET.NO_ENTRY: NoEntryAlert("Speaker not found"), - }, - EventName.tooDistracted: { ET.NO_ENTRY: NoEntryAlert("Distraction Level Too High"), },