From 6c400c80a232b4d872815f45a58010750861dffc Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Thu, 27 Aug 2020 12:58:43 -0600 Subject: [PATCH] Fixes issue where true was always being passed into SetHdcpStateAction method --- .../Essentials_DM/Chassis/DmChassisController.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmChassisController.cs b/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmChassisController.cs index 32904276..d6b6e60c 100644 --- a/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmChassisController.cs +++ b/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmChassisController.cs @@ -1210,8 +1210,8 @@ namespace PepperDash.Essentials.DM var hdmiInPortWCec = port as HdmiInputWithCEC; - - SetHdcpStateAction(true, hdmiInPortWCec, joinMap.HdcpSupportState.JoinNumber + ioSlotJoin, trilist); + + SetHdcpStateAction(PropertiesConfig.InputSlotSupportsHdcp2[ioSlot], hdmiInPortWCec, joinMap.HdcpSupportState.JoinNumber + ioSlotJoin, trilist); InputCardHdcpStateFeedbacks[ioSlot].LinkInputSig( @@ -1500,10 +1500,12 @@ namespace PepperDash.Essentials.DM { if (s == 0) { + Debug.Console(2, this, "Join {0} value {1} Setting HdcpSupport to off", join, s); port.HdcpSupportOff(); } else if (s > 0) { + Debug.Console(2, this, "Join {0} value {1} Setting HdcpSupport to on", join, s); port.HdcpSupportOn(); } }); @@ -1513,6 +1515,7 @@ namespace PepperDash.Essentials.DM trilist.SetUShortSigAction(join, u => { + Debug.Console(2, this, "Join {0} value {1} Setting HdcpReceiveCapability to: {2}", join, u, (eHdcpCapabilityType)u); port.HdcpReceiveCapability = (eHdcpCapabilityType)u; }); } @@ -1527,10 +1530,12 @@ namespace PepperDash.Essentials.DM { if (s == 0) { + Debug.Console(2, this, "Join {0} value {1} Setting HdcpSupport to off", join, s); port.HdcpSupportOff(); } else if (s > 0) { + Debug.Console(2, this, "Join {0} value {1} Setting HdcpSupport to on", join, s); port.HdcpSupportOn(); } }); @@ -1540,6 +1545,7 @@ namespace PepperDash.Essentials.DM trilist.SetUShortSigAction(join, u => { + Debug.Console(2, this, "Join {0} value {1} Setting HdcpReceiveCapability to: {2}", join, u, (eHdcpCapabilityType)u); port.HdcpCapability = (eHdcpCapabilityType)u; }); }