Skip to content

Commit

Permalink
Fix: Disable the DSP by default (#1824)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
  • Loading branch information
maximmaxim345 and marcelveldt authored Jan 3, 2025
1 parent 7e173cc commit 1b9500a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions music_assistant/controllers/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ def get_player_dsp_config(self, player_id: str) -> DSPConfig:
# 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,
Expand All @@ -482,6 +483,9 @@ def get_player_dsp_config(self, player_id: str) -> DSPConfig:
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

Expand Down

0 comments on commit 1b9500a

Please sign in to comment.