XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss_hdcp.c
int XV_HdmiRxSs_HdcpSetCapability(XV_HdmiRxSs *InstancePtr, XV_HdmiRxSs_HdcpProtocol Protocol)
{
  /* Verify argument. */
  Xil_AssertNonvoid(InstancePtr != NULL);
  Xil_AssertNonvoid(Protocol <= XV_HDMIRXSS_HDCP_BOTH);

    // Enable HDCP capable for both protocols
    // DDC slave is enabled
    switch (Protocol) {

    // Disable HDCP capable for both protocols
    // DDC slave is disabled
    case XV_HDMIRXSS_HDCP_NONE:
      XV_HdmiRx_DdcIntrDisable(InstancePtr->HdmiRxPtr);
      XV_HdmiRx_DdcHdcpDisable(InstancePtr->HdmiRxPtr);
      XV_HdmiRxSs_HdcpDisable(InstancePtr);
      break;

    // Enable HDCP capable for both protocols
    // DDC slave is enabled
    default :
      XV_HdmiRx_DdcIntrEnable(InstancePtr->HdmiRxPtr);
      XV_HdmiRx_DdcHdcpEnable(InstancePtr->HdmiRxPtr);
      break;
  }

  return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function sets the desired HDCP capability and enables it.
* The protocol can be set to either both or none. Selective
* enablement of HDCP 1.4 and 2.2 is not yet supported.
*
* @param InstancePtr is a pointer to the XV_HdmiRxSs instance.
* @param Protocol is the requested content protection scheme of type
*        XV_HdmiRxSs_HdcpProtocol. Only options currently supported
*        is both and none.
*
* @return
*  - XST_SUCCESS if action was successful
*  - XST_FAILURE if action was not successful
*
* @note   None.
*
******************************************************************************/
This function sets the desired HDCP capability and enables it.
The protocol can be set to either both or none. Selective
enablement of HDCP 1.4 and 2.2 is not yet supported.
This function sets the desired HDCP capability and enables it . The protocol can be set to either both or none . Selective enablement of HDCP 1 . 4 and 2 . 2 is not yet supported .
int XV_HdmiRxSs_HdcpSetCapability(XV_HdmiRxSs *InstancePtr, XV_HdmiRxSs_HdcpProtocol Protocol)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
  Xil_AssertNonvoid(Protocol <= XV_HDMIRXSS_HDCP_BOTH);
    switch (Protocol) {
    case XV_HDMIRXSS_HDCP_NONE:
      XV_HdmiRx_DdcIntrDisable(InstancePtr->HdmiRxPtr);
      XV_HdmiRx_DdcHdcpDisable(InstancePtr->HdmiRxPtr);
      XV_HdmiRxSs_HdcpDisable(InstancePtr);
      break;
    default :
      XV_HdmiRx_DdcIntrEnable(InstancePtr->HdmiRxPtr);
      XV_HdmiRx_DdcHdcpEnable(InstancePtr->HdmiRxPtr);
      break;
  }
  return XST_SUCCESS;
}
int XV_HdmiRxSs_HdcpSetCapability ( XV_HdmiRxSs * InstancePtr , XV_HdmiRxSs_HdcpProtocol Protocol ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( Protocol <= XV_HDMIRXSS_HDCP_BOTH ) ; switch ( Protocol ) { case XV_HDMIRXSS_HDCP_NONE : XV_HdmiRx_DdcIntrDisable ( InstancePtr -> HdmiRxPtr ) ; XV_HdmiRx_DdcHdcpDisable ( InstancePtr -> HdmiRxPtr ) ; XV_HdmiRxSs_HdcpDisable ( InstancePtr ) ; break ; default : XV_HdmiRx_DdcIntrEnable ( InstancePtr -> HdmiRxPtr ) ; XV_HdmiRx_DdcHdcpEnable ( InstancePtr -> HdmiRxPtr ) ; break ; } return XST_SUCCESS ; }
This function sets the desired HDCP capability and enables it.
This function sets the desired HDCP capability and enables it .
/* Verify argument. */ // Enable HDCP capable for both protocols // DDC slave is enabled // Disable HDCP capable for both protocols // DDC slave is disabled // Enable HDCP capable for both protocols // DDC slave is enabled