XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss.c
static void XV_HdmiRxSs_ModeCallback(void *CallbackRef)
{
  XV_HdmiRxSs *HdmiRxSsPtr = (XV_HdmiRxSs *)CallbackRef;

  // HDMI mode
  if (XV_HdmiRxSs_GetVideoStreamType(HdmiRxSsPtr )) {
#ifdef XV_HDMIRXSS_LOG_ENABLE
    XV_HdmiRxSs_LogWrite(HdmiRxSsPtr, XV_HDMIRXSS_LOG_EVT_HDMIMODE, 0);
#endif
#ifdef USE_HDCP_RX
    XV_HdmiRxSs_HdcpPushEvent(HdmiRxSsPtr, XV_HDMIRXSS_HDCP_HDMI_MODE_EVT);
#endif
  }

  // DVI mode
  else {
#ifdef XV_HDMIRXSS_LOG_ENABLE
    XV_HdmiRxSs_LogWrite(HdmiRxSsPtr, XV_HDMIRXSS_LOG_EVT_DVIMODE, 0);
#endif
#ifdef USE_HDCP_RX
    XV_HdmiRxSs_HdcpPushEvent(HdmiRxSsPtr, XV_HDMIRXSS_HDCP_DVI_MODE_EVT);
#endif
  }
}
/*****************************************************************************/
/**
*
* This function is called when the mode has transitioned from DVI to HDMI or
* vice versa.
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function is called when the mode has transitioned from DVI to HDMI or
vice versa.
This function is called when the mode has transitioned from DVI to HDMI or vice versa .
static void XV_HdmiRxSs_ModeCallback(void *CallbackRef)
{
  XV_HdmiRxSs *HdmiRxSsPtr = (XV_HdmiRxSs *)CallbackRef;
  if (XV_HdmiRxSs_GetVideoStreamType(HdmiRxSsPtr )) {
#ifdef XV_HDMIRXSS_LOG_ENABLE
    XV_HdmiRxSs_LogWrite(HdmiRxSsPtr, XV_HDMIRXSS_LOG_EVT_HDMIMODE, 0);
#endif
#ifdef USE_HDCP_RX
    XV_HdmiRxSs_HdcpPushEvent(HdmiRxSsPtr, XV_HDMIRXSS_HDCP_HDMI_MODE_EVT);
#endif
  }
  else {
#ifdef XV_HDMIRXSS_LOG_ENABLE
    XV_HdmiRxSs_LogWrite(HdmiRxSsPtr, XV_HDMIRXSS_LOG_EVT_DVIMODE, 0);
#endif
#ifdef USE_HDCP_RX
    XV_HdmiRxSs_HdcpPushEvent(HdmiRxSsPtr, XV_HDMIRXSS_HDCP_DVI_MODE_EVT);
#endif
  }
}
static void XV_HdmiRxSs_ModeCallback ( void * CallbackRef ) { XV_HdmiRxSs * HdmiRxSsPtr = ( XV_HdmiRxSs * ) CallbackRef ; if ( XV_HdmiRxSs_GetVideoStreamType ( HdmiRxSsPtr ) ) { #ifdef XV_HDMIRXSS_LOG_ENABLE XV_HdmiRxSs_LogWrite ( HdmiRxSsPtr , XV_HDMIRXSS_LOG_EVT_HDMIMODE , 0 ) ; #endif #ifdef USE_HDCP_RX XV_HdmiRxSs_HdcpPushEvent ( HdmiRxSsPtr , XV_HDMIRXSS_HDCP_HDMI_MODE_EVT ) ; #endif } else { #ifdef XV_HDMIRXSS_LOG_ENABLE XV_HdmiRxSs_LogWrite ( HdmiRxSsPtr , XV_HDMIRXSS_LOG_EVT_DVIMODE , 0 ) ; #endif #ifdef USE_HDCP_RX XV_HdmiRxSs_HdcpPushEvent ( HdmiRxSsPtr , XV_HDMIRXSS_HDCP_DVI_MODE_EVT ) ; #endif } }
This function is called when the mode has transitioned from DVI to HDMI or
vice versa.
This function is called when the mode has transitioned from DVI to HDMI or vice versa .
// HDMI mode // DVI mode