Skip to content

Commit

Permalink
[sonos] Fix sub/surround controls (#9961)
Browse files Browse the repository at this point in the history
Related to #9874

Signed-off-by: Laurent Garnier <[email protected]>
  • Loading branch information
lolodomo authored Jan 26, 2021
1 parent e8ba8ec commit 7ce7228
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,14 @@ public void startElement(@Nullable String uri, @Nullable String localName, @Null
case "Bass":
case "Treble":
case "OutputFixed":
case "NightMode":
case "DialogLevel":
case "SubEnabled":
case "SubGain":
case "SurroundEnabled":
case "SurroundMode":
case "SurroundLevel":
case "MusicSurroundLevel":
val = attributes == null ? null : attributes.getValue("val");
if (val != null) {
changes.put(qName, val);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2028,15 +2028,15 @@ public void setRepeat(Command command) {
}

public void setSubwoofer(Command command) {
setEqualizerBooleanSetting(command, "SubEnabled");
setEqualizerBooleanSetting(command, "SubEnable");
}

public void setSubwooferGain(Command command) {
setEqualizerNumericSetting(command, "SubGain", getSubwooferGain(), MIN_SUBWOOFER_GAIN, MAX_SUBWOOFER_GAIN);
}

public void setSurround(Command command) {
setEqualizerBooleanSetting(command, "SurroundEnabled");
setEqualizerBooleanSetting(command, "SurroundEnable");
}

public void setSurroundMusicMode(Command command) {
Expand Down

0 comments on commit 7ce7228

Please sign in to comment.