Fix: Disable the DSP by default (#1824)
authorMaxim Raznatovski <nda.mr43@gmail.com>
Fri, 3 Jan 2025 10:55:24 +0000 (11:55 +0100)
committerGitHub <noreply@github.com>
Fri, 3 Jan 2025 10:55:24 +0000 (11:55 +0100)
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
music_assistant/controllers/config.py

index 6ff7924c710fd74f152057e3ed7a9a0b74fbcab6..6f9611e94bcbb0dab9a577da0b7ee8ea771c4bb8 100644 (file)
@@ -463,6 +463,7 @@ class ConfigController:
                 # add a tone control filter with the old values, reset the deprecated values and
                 # save this as the new DSP config
                 # TODO: remove this in a future release
+                dsp_config.enabled = True
                 dsp_config.filters.append(
                     ToneControlFilter(
                         enabled=True,
@@ -482,6 +483,9 @@ class ConfigController:
                         self.mass.config.set_raw_player_config_value(player_id, key, 0)
 
                 self.set(f"{CONF_PLAYER_DSP}/{player_id}", dsp_config.to_dict())
+            else:
+                # The DSP config does not do anything by default, so we disable it
+                dsp_config.enabled = False
 
             return dsp_config