XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/I2S/xhdmi_example.c
void RxConnectCallback(void *CallbackRef) {
	XV_HdmiRxSs *HdmiRxSsPtr = (XV_HdmiRxSs *)CallbackRef;

	/* RX cable is disconnected */
	if(HdmiRxSsPtr->IsStreamConnected == (FALSE)) {
		/* Clear GT RX TMDS clock ratio */
		Vphy.HdmiRxTmdsClockRatio = 0;

#if(LOOPBACK_MODE_EN != 1)
		/* Check for Pass-through:
		 * Doesnt require to restart colorbar
		 * if the system is in colorbar mode
		 */
		if (IsPassThrough) {
			/* Clear pass-through flag
			 * as the system is in TX-Only
			 * mode
			 */
			IsPassThrough = (FALSE);
#ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES
			/* Start colorbar with same
			 * video parameters
			 */
			if (TxCableConnect) {
				TxRestartColorbar = (TRUE);
				TxBusy = (FALSE);
			} else {
				TxRestartColorbar = (FALSE);
				TxBusy = (TRUE);
			}
#endif
		}
#endif

		XVphy_IBufDsEnable(&Vphy, 0, XVPHY_DIR_RX, (FALSE));

#ifdef USE_HDCP
		/* Call HDCP disconnect callback */
		XHdcp_StreamDisconnectCallback(&HdcpRepeater);
#endif
	} else {
		XVphy_IBufDsEnable(&Vphy, 0, XVPHY_DIR_RX, (TRUE));

#ifdef USE_HDCP
		/* Call HDCP connect callback */
		XHdcp_StreamConnectCallback(&HdcpRepeater);
#endif
	}

}
/*****************************************************************************/
/**
*
* This function is called when a RX connect event has occurred.
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function is called when a RX connect event has occurred.
This function is called when a RX connect event has occurred .
void RxConnectCallback(void *CallbackRef) {
	XV_HdmiRxSs *HdmiRxSsPtr = (XV_HdmiRxSs *)CallbackRef;
	if(HdmiRxSsPtr->IsStreamConnected == (FALSE)) {
		Vphy.HdmiRxTmdsClockRatio = 0;
#if(LOOPBACK_MODE_EN != 1)
		if (IsPassThrough) {
			IsPassThrough = (FALSE);
#ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES
			if (TxCableConnect) {
				TxRestartColorbar = (TRUE);
				TxBusy = (FALSE);
			} else {
				TxRestartColorbar = (FALSE);
				TxBusy = (TRUE);
			}
#endif
		}
#endif
		XVphy_IBufDsEnable(&Vphy, 0, XVPHY_DIR_RX, (FALSE));
#ifdef USE_HDCP
		XHdcp_StreamDisconnectCallback(&HdcpRepeater);
#endif
	} else {
		XVphy_IBufDsEnable(&Vphy, 0, XVPHY_DIR_RX, (TRUE));
#ifdef USE_HDCP
		XHdcp_StreamConnectCallback(&HdcpRepeater);
#endif
	}
}
void RxConnectCallback ( void * CallbackRef ) { XV_HdmiRxSs * HdmiRxSsPtr = ( XV_HdmiRxSs * ) CallbackRef ; if ( HdmiRxSsPtr -> IsStreamConnected == ( FALSE ) ) { Vphy . HdmiRxTmdsClockRatio = 0 ; #if ( LOOPBACK_MODE_EN != 1 ) if ( IsPassThrough ) { IsPassThrough = ( FALSE ) ; #ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES if ( TxCableConnect ) { TxRestartColorbar = ( TRUE ) ; TxBusy = ( FALSE ) ; } else { TxRestartColorbar = ( FALSE ) ; TxBusy = ( TRUE ) ; } #endif } #endif XVphy_IBufDsEnable ( & Vphy , 0 , XVPHY_DIR_RX , ( FALSE ) ) ; #ifdef USE_HDCP XHdcp_StreamDisconnectCallback ( & HdcpRepeater ) ; #endif } else { XVphy_IBufDsEnable ( & Vphy , 0 , XVPHY_DIR_RX , ( TRUE ) ) ; #ifdef USE_HDCP XHdcp_StreamConnectCallback ( & HdcpRepeater ) ; #endif } }
This function is called when a RX connect event has occurred.
This function is called when a RX connect event has occurred .
/* RX cable is disconnected */ /* Clear GT RX TMDS clock ratio */ /* Check for Pass-through:
		 * Doesnt require to restart colorbar
		 * if the system is in colorbar mode
		 */ /* Clear pass-through flag
			 * as the system is in TX-Only
			 * mode
			 */ /* Start colorbar with same
			 * video parameters
			 */ /* Call HDCP disconnect callback */ /* Call HDCP connect callback */