XilinxProcessorIPLib/drivers/v_hdmirxss1/src/xv_hdmirxss1.c
static void XV_HdmiRxSs1_SyncLossCallback(void *CallbackRef)
{
  XV_HdmiRxSs1 *HdmiRxSs1Ptr = (XV_HdmiRxSs1 *)CallbackRef;

  if (HdmiRxSs1Ptr->HdmiRx1Ptr->Stream.SyncStatus ==
		  XV_HDMIRX1_SYNCSTAT_SYNC_LOSS) {
  /* Push sync loss event to HDCP event queue*/
#ifdef XV_HDMIRXSS1_LOG_ENABLE
  XV_HdmiRxSs1_LogWrite(HdmiRxSs1Ptr, XV_HDMIRXSS1_LOG_EVT_SYNCLOSS, 0);
#endif

#ifdef USE_HDCP_RX
  XV_HdmiRxSs1_HdcpPushEvent(HdmiRxSs1Ptr, XV_HDMIRXSS1_HDCP_SYNC_LOSS_EVT);
#endif
  }
  /* Sync is recovered/establish*/
  else if (HdmiRxSs1Ptr->HdmiRx1Ptr->Stream.SyncStatus ==
		  XV_HDMIRX1_SYNCSTAT_SYNC_EST) {
	  /* Push sync loss event to HDCP event queue*/
#ifdef XV_HDMIRXSS1_LOG_ENABLE
	  XV_HdmiRxSs1_LogWrite(HdmiRxSs1Ptr, XV_HDMIRXSS1_LOG_EVT_SYNCEST, 0);
#endif

#ifdef USE_HDCP_RX
	  XV_HdmiRxSs1_HdcpPushEvent(HdmiRxSs1Ptr,
			  XV_HDMIRXSS1_HDCP_SYNC_EST_EVT);
#endif
  }
}
/*****************************************************************************/
/**
*
* This function is called when a RX Sync Loss IRQ has occurred.
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function is called when a RX Sync Loss IRQ has occurred.
This function is called when a RX Sync Loss IRQ has occurred .
static void XV_HdmiRxSs1_SyncLossCallback(void *CallbackRef)
{
  XV_HdmiRxSs1 *HdmiRxSs1Ptr = (XV_HdmiRxSs1 *)CallbackRef;
  if (HdmiRxSs1Ptr->HdmiRx1Ptr->Stream.SyncStatus ==
		  XV_HDMIRX1_SYNCSTAT_SYNC_LOSS) {
#ifdef XV_HDMIRXSS1_LOG_ENABLE
  XV_HdmiRxSs1_LogWrite(HdmiRxSs1Ptr, XV_HDMIRXSS1_LOG_EVT_SYNCLOSS, 0);
#endif
#ifdef USE_HDCP_RX
  XV_HdmiRxSs1_HdcpPushEvent(HdmiRxSs1Ptr, XV_HDMIRXSS1_HDCP_SYNC_LOSS_EVT);
#endif
  }
  else if (HdmiRxSs1Ptr->HdmiRx1Ptr->Stream.SyncStatus ==
		  XV_HDMIRX1_SYNCSTAT_SYNC_EST) {
#ifdef XV_HDMIRXSS1_LOG_ENABLE
	  XV_HdmiRxSs1_LogWrite(HdmiRxSs1Ptr, XV_HDMIRXSS1_LOG_EVT_SYNCEST, 0);
#endif
#ifdef USE_HDCP_RX
	  XV_HdmiRxSs1_HdcpPushEvent(HdmiRxSs1Ptr,
			  XV_HDMIRXSS1_HDCP_SYNC_EST_EVT);
#endif
  }
}
static void XV_HdmiRxSs1_SyncLossCallback ( void * CallbackRef ) { XV_HdmiRxSs1 * HdmiRxSs1Ptr = ( XV_HdmiRxSs1 * ) CallbackRef ; if ( HdmiRxSs1Ptr -> HdmiRx1Ptr -> Stream . SyncStatus == XV_HDMIRX1_SYNCSTAT_SYNC_LOSS ) { #ifdef XV_HDMIRXSS1_LOG_ENABLE XV_HdmiRxSs1_LogWrite ( HdmiRxSs1Ptr , XV_HDMIRXSS1_LOG_EVT_SYNCLOSS , 0 ) ; #endif #ifdef USE_HDCP_RX XV_HdmiRxSs1_HdcpPushEvent ( HdmiRxSs1Ptr , XV_HDMIRXSS1_HDCP_SYNC_LOSS_EVT ) ; #endif } else if ( HdmiRxSs1Ptr -> HdmiRx1Ptr -> Stream . SyncStatus == XV_HDMIRX1_SYNCSTAT_SYNC_EST ) { #ifdef XV_HDMIRXSS1_LOG_ENABLE XV_HdmiRxSs1_LogWrite ( HdmiRxSs1Ptr , XV_HDMIRXSS1_LOG_EVT_SYNCEST , 0 ) ; #endif #ifdef USE_HDCP_RX XV_HdmiRxSs1_HdcpPushEvent ( HdmiRxSs1Ptr , XV_HDMIRXSS1_HDCP_SYNC_EST_EVT ) ; #endif } }
This function is called when a RX Sync Loss IRQ has occurred.
This function is called when a RX Sync Loss IRQ has occurred .
/* Push sync loss event to HDCP event queue*/ /* Sync is recovered/establish*/ /* Push sync loss event to HDCP event queue*/