XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss_hdcp.c
XV_HdmiRxSs_HdcpContentStreamType XV_HdmiRxSs_HdcpGetContentStreamType(XV_HdmiRxSs *InstancePtr)
{
  /* Verify argument. */
  Xil_AssertNonvoid(InstancePtr != NULL);

  int StreamType;

  switch (InstancePtr->HdcpProtocol)
  {
    // HDCP 1.4
    case XV_HDMIRXSS_HDCP_14:
      StreamType = XV_HDMIRXSS_HDCP_STREAMTYPE_0;
      break;

#ifdef XPAR_XHDCP22_RX_NUM_INSTANCES
    // HDCP 2.2
    case XV_HDMIRXSS_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        StreamType = XHdcp22Rx_GetContentStreamType(InstancePtr->Hdcp22Ptr);
      } else {
        StreamType = XV_HDMIRXSS_HDCP_STREAMTYPE_0;
      }
      break;
#endif

    default:
      StreamType = XV_HDMIRXSS_HDCP_STREAMTYPE_0;
  }

  return (XV_HdmiRxSs_HdcpContentStreamType) StreamType;
}
/*****************************************************************************/
/**
*
* This function gets the repeater management content stream type.
* When the protocol is HDCP 1.4 the stream type is always Type 0.
* For HDCP 2.2 the stream type is extracted from the HDCP 2.2
* stream manage message.
*
* @param InstancePtr is a pointer to the XV_HdmiRxSs instance.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function gets the repeater management content stream type.
When the protocol is HDCP 1.4 the stream type is always Type 0.
For HDCP 2.2 the stream type is extracted from the HDCP 2.2
stream manage message.
This function gets the repeater management content stream type . When the protocol is HDCP 1 . 4 the stream type is always Type 0 . For HDCP 2 . 2 the stream type is extracted from the HDCP 2 . 2 stream manage message .
XV_HdmiRxSs_HdcpContentStreamType XV_HdmiRxSs_HdcpGetContentStreamType(XV_HdmiRxSs *InstancePtr)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
  int StreamType;
  switch (InstancePtr->HdcpProtocol)
  {
    case XV_HDMIRXSS_HDCP_14:
      StreamType = XV_HDMIRXSS_HDCP_STREAMTYPE_0;
      break;
#ifdef XPAR_XHDCP22_RX_NUM_INSTANCES
    case XV_HDMIRXSS_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        StreamType = XHdcp22Rx_GetContentStreamType(InstancePtr->Hdcp22Ptr);
      } else {
        StreamType = XV_HDMIRXSS_HDCP_STREAMTYPE_0;
      }
      break;
#endif
    default:
      StreamType = XV_HDMIRXSS_HDCP_STREAMTYPE_0;
  }
  return (XV_HdmiRxSs_HdcpContentStreamType) StreamType;
}
XV_HdmiRxSs_HdcpContentStreamType XV_HdmiRxSs_HdcpGetContentStreamType ( XV_HdmiRxSs * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; int StreamType ; switch ( InstancePtr -> HdcpProtocol ) { case XV_HDMIRXSS_HDCP_14 : StreamType = XV_HDMIRXSS_HDCP_STREAMTYPE_0 ; break ; #ifdef XPAR_XHDCP22_RX_NUM_INSTANCES case XV_HDMIRXSS_HDCP_22 : if ( InstancePtr -> Hdcp22Ptr ) { StreamType = XHdcp22Rx_GetContentStreamType ( InstancePtr -> Hdcp22Ptr ) ; } else { StreamType = XV_HDMIRXSS_HDCP_STREAMTYPE_0 ; } break ; #endif default : StreamType = XV_HDMIRXSS_HDCP_STREAMTYPE_0 ; } return ( XV_HdmiRxSs_HdcpContentStreamType ) StreamType ; }
This function gets the repeater management content stream type.
This function gets the repeater management content stream type .
/* Verify argument. */ // HDCP 1.4 // HDCP 2.2