Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion music_assistant/controllers/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,9 +926,11 @@ async def save_dsp_config(self, player_id: str, config: DSPConfig) -> DSPConfig:
# validate the new config
config.validate()

old_dsp_enabled = self.get_player_dsp_config(player_id).enabled
# Save and apply the new config to the player
self.set(f"{CONF_PLAYER_DSP}/{player_id}", config.to_dict())
await self.mass.players.on_player_dsp_change(player_id)
if old_dsp_enabled or config.enabled:
await self.mass.players.on_player_dsp_change(player_id)
# send the dsp config updated event
self.mass.signal_event(
EventType.PLAYER_DSP_CONFIG_UPDATED,
Expand Down