XilinxProcessorIPLib/drivers/v_hdmitxss1/src/xv_hdmitxss1_hdcp.c
int XV_HdmiTxSs1_HdcpDisableEncryption(XV_HdmiTxSs1 *InstancePtr)
{
  /* Verify argument. */
  Xil_AssertNonvoid(InstancePtr != NULL);

  int Status = XST_SUCCESS;

#ifdef XPAR_XHDCP_NUM_INSTANCES
  if (InstancePtr->Hdcp14Ptr) {
    Status = XHdcp1x_DisableEncryption(InstancePtr->Hdcp14Ptr, 0x1);

    if (Status != XST_SUCCESS) {
      return XST_FAILURE;
    }
  }
#endif

#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
  if (InstancePtr->Hdcp22Ptr) {
    Status = XHdcp22Tx_DisableEncryption(InstancePtr->Hdcp22Ptr);

    if (Status != XST_SUCCESS) {
      return XST_FAILURE;
    }
  }
#endif

  return Status;
}
/*****************************************************************************/
/**
*
* This function disables encryption for both HDCP protocols.
*
* @param InstancePtr is a pointer to the XV_HdmiTxSs1 instance.
*
* @return
*  - XST_SUCCESS if action was successful
*  - XST_FAILURE if action was not successful
*
* @note   None.
*
******************************************************************************/
This function disables encryption for both HDCP protocols.
This function disables encryption for both HDCP protocols .
int XV_HdmiTxSs1_HdcpDisableEncryption(XV_HdmiTxSs1 *InstancePtr)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
  int Status = XST_SUCCESS;
#ifdef XPAR_XHDCP_NUM_INSTANCES
  if (InstancePtr->Hdcp14Ptr) {
    Status = XHdcp1x_DisableEncryption(InstancePtr->Hdcp14Ptr, 0x1);
    if (Status != XST_SUCCESS) {
      return XST_FAILURE;
    }
  }
#endif
#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
  if (InstancePtr->Hdcp22Ptr) {
    Status = XHdcp22Tx_DisableEncryption(InstancePtr->Hdcp22Ptr);
    if (Status != XST_SUCCESS) {
      return XST_FAILURE;
    }
  }
#endif
  return Status;
}
int XV_HdmiTxSs1_HdcpDisableEncryption ( XV_HdmiTxSs1 * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; int Status = XST_SUCCESS ; #ifdef XPAR_XHDCP_NUM_INSTANCES if ( InstancePtr -> Hdcp14Ptr ) { Status = XHdcp1x_DisableEncryption ( InstancePtr -> Hdcp14Ptr , 0x1 ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } } #endif #ifdef XPAR_XHDCP22_TX_NUM_INSTANCES if ( InstancePtr -> Hdcp22Ptr ) { Status = XHdcp22Tx_DisableEncryption ( InstancePtr -> Hdcp22Ptr ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } } #endif return Status ; }
This function disables encryption for both HDCP protocols.
This function disables encryption for both HDCP protocols .
/* Verify argument. */