[sonos] Fix sub/surround controls (#9961)

Related to #9874

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2021-01-26 18:14:28 +01:00 committed by GitHub
parent e8ba8ec47b
commit 7ce7228a85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -869,6 +869,14 @@ public class SonosXMLParser {
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);

View File

@ -2028,7 +2028,7 @@ public class ZonePlayerHandler extends BaseThingHandler implements UpnpIOPartici
}
public void setSubwoofer(Command command) {
setEqualizerBooleanSetting(command, "SubEnabled");
setEqualizerBooleanSetting(command, "SubEnable");
}
public void setSubwooferGain(Command command) {
@ -2036,7 +2036,7 @@ public class ZonePlayerHandler extends BaseThingHandler implements UpnpIOPartici
}
public void setSurround(Command command) {
setEqualizerBooleanSetting(command, "SurroundEnabled");
setEqualizerBooleanSetting(command, "SurroundEnable");
}
public void setSurroundMusicMode(Command command) {