mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-14 04:57:15 +00:00
feat: Add HDCP capability feedback and setting to Displayport Input on 4xz302 endpoint
feat: Resolve #1073
This commit is contained in:
parent
615598c8a6
commit
243c7cc3ee
7 changed files with 1197 additions and 1146 deletions
|
|
@ -394,6 +394,26 @@ namespace PepperDash.Essentials.DM
|
|||
}
|
||||
}
|
||||
|
||||
if (txR.InputPorts[DmPortName.DisplayPortIn] != null)
|
||||
{
|
||||
var inputPort = txR.InputPorts[DmPortName.DisplayPortIn];
|
||||
|
||||
if (tx.Feedbacks["DisplayPortInHdcpCapability"] != null)
|
||||
{
|
||||
var intFeedback = tx.Feedbacks["DisplayPortInHdcpCapability"] as IntFeedback;
|
||||
if (intFeedback != null)
|
||||
intFeedback.LinkInputSig(trilist.UShortInput[joinMap.Port3HdcpState.JoinNumber]);
|
||||
}
|
||||
|
||||
if (inputPort.ConnectionType == eRoutingPortConnectionType.Hdmi && inputPort.Port != null)
|
||||
{
|
||||
var port = inputPort.Port as EndpointDisplayPortInput;
|
||||
|
||||
SetHdcpCapabilityAction(hdcpTypeSimple, port, joinMap.Port3HdcpState.JoinNumber, trilist);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var txFreeRun = tx as IHasFreeRun;
|
||||
|
|
@ -441,6 +461,20 @@ namespace PepperDash.Essentials.DM
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void SetHdcpCapabilityAction(bool hdcpTypeSimple, EndpointDisplayPortInput port, uint join,
|
||||
BasicTriList trilist)
|
||||
{
|
||||
|
||||
|
||||
trilist.SetUShortSigAction(join,
|
||||
s =>
|
||||
{
|
||||
port.HdcpCapability = (eHdcpCapabilityType) s;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class DmTxControllerFactory : EssentialsDeviceFactory<DmTxControllerBase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue