diff --git a/PepperDashEssentials/Bridges/EssentialDM.cs b/PepperDashEssentials/Bridges/EssentialDM.cs index 34d9cc62..35e9496c 100644 --- a/PepperDashEssentials/Bridges/EssentialDM.cs +++ b/PepperDashEssentials/Bridges/EssentialDM.cs @@ -61,7 +61,9 @@ namespace PepperDash.Essentials { var TxDevice = DeviceManager.GetDeviceForKey(TxKey) as DmTxControllerBase; TxDevice.IsOnline.LinkInputSig(ApiEisc.Eisc.BooleanInput[ApiMap.TxOnlineStatus[tempX]]); TxDevice.AnyVideoInput.VideoStatus.VideoSyncFeedback.LinkInputSig(ApiEisc.Eisc.BooleanInput[ApiMap.TxVideoSyncStatus[tempX]]); - ApiEisc.Eisc.SetUShortSigAction(901, u => TxDevice.SetHdcpSupport((ePdtHdcpSupport)(u))); + ApiEisc.Eisc.SetUShortSigAction((ApiMap.HdcpSupport[tempX]), u => TxDevice.SetHdcpSupportAll((ePdtHdcpSupport)(u))); + TxDevice.HdcpSupportAllFeedback.LinkInputSig(ApiEisc.Eisc.UShortInput[ApiMap.HdcpSupport[tempX]]); + ApiEisc.Eisc.UShortInput[ApiMap.HdcpSupportCapability[tempX]].UShortValue = TxDevice.HdcpSupportCapability; } else { DmSwitch.VideoInputSyncFeedbacks[tempX].LinkInputSig(ApiEisc.Eisc.BooleanInput[ApiMap.TxVideoSyncStatus[tempX]]); @@ -113,6 +115,8 @@ namespace PepperDash.Essentials { public Dictionary InputNames; public Dictionary OutputNames; public Dictionary OutputRouteNames; + public Dictionary HdcpSupport; + public Dictionary HdcpSupportCapability; public EssentialDMApiMap() { OutputVideoRoutes = new Dictionary(); @@ -123,10 +127,14 @@ namespace PepperDash.Essentials { InputNames = new Dictionary(); OutputNames = new Dictionary(); OutputRouteNames = new Dictionary(); + HdcpSupport = new Dictionary(); + HdcpSupportCapability = new Dictionary(); + for (uint x = 1; x <= 200; x++) { // Debug.Console(0, "Init Value {0}", x); uint tempNum = x; - + HdcpSupportCapability[tempNum] = (ushort)(tempNum + 1200); + HdcpSupport[tempNum] = (ushort)(tempNum + 900); OutputVideoRoutes[tempNum] = (ushort)(tempNum + 100); OutputAudioRoutes[tempNum] = (ushort)(tempNum + 300); TxOnlineStatus[tempNum] = (ushort)(tempNum + 500);