XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/I2S/xhdmi_example.c
void RxStreamDownCallback(void *CallbackRef) {

#if(LOOPBACK_MODE_EN != 1)
#ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES
	ResetAuxFifo();
	/* Check for Pass-through
	* Doesnt require to restart colorbar
	* if the system is in colorbar mode
	*/
	if (IsPassThrough) {
		/* RX Stream Down happen due to 2 possible scenarios
		* 1 - When resolution change
		* 2 - When the source stops sending stream even the RX cable
		*     is connected
		* In this example, The color bar should happen only for 2
		* scenarios, when the TX Cable is still connected
		* 1 - When pressing "c" by forcing the color bar
		* 2 - When RX cable is disconnected
		* Hence, when the stream change, the example design
		* wouldn't enter to color bar mode unless both scenario's32
		* above
		*/
		TxRestartColorbar = (FALSE);
		TxBusy = (TRUE);
	}
#endif
#endif

#ifdef USE_HDCP
	/* Call HDCP stream-down callback */
	XHdcp_StreamDownCallback(&HdcpRepeater);
#endif

#ifdef XPAR_XI2SRX_NUM_INSTANCES
	rx_is_up = 0;
#endif


}
/*****************************************************************************/
/**
*
* This function is called when the RX stream is down.
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function is called when the RX stream is down.
This function is called when the RX stream is down .
void RxStreamDownCallback(void *CallbackRef) {
#if(LOOPBACK_MODE_EN != 1)
#ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES
	ResetAuxFifo();
	if (IsPassThrough) {
		TxRestartColorbar = (FALSE);
		TxBusy = (TRUE);
	}
#endif
#endif
#ifdef USE_HDCP
	XHdcp_StreamDownCallback(&HdcpRepeater);
#endif
#ifdef XPAR_XI2SRX_NUM_INSTANCES
	rx_is_up = 0;
#endif
}
void RxStreamDownCallback ( void * CallbackRef ) { #if ( LOOPBACK_MODE_EN != 1 ) #ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES ResetAuxFifo ( ) ; if ( IsPassThrough ) { TxRestartColorbar = ( FALSE ) ; TxBusy = ( TRUE ) ; } #endif #endif #ifdef USE_HDCP XHdcp_StreamDownCallback ( & HdcpRepeater ) ; #endif #ifdef XPAR_XI2SRX_NUM_INSTANCES rx_is_up = 0 ; #endif }
This function is called when the RX stream is down.
This function is called when the RX stream is down .
/* Check for Pass-through
	* Doesnt require to restart colorbar
	* if the system is in colorbar mode
	*/ /* RX Stream Down happen due to 2 possible scenarios
		* 1 - When resolution change
		* 2 - When the source stops sending stream even the RX cable
		*     is connected
		* In this example, The color bar should happen only for 2
		* scenarios, when the TX Cable is still connected
		* 1 - When pressing "c" by forcing the color bar
		* 2 - When RX cable is disconnected
		* Hence, when the stream change, the example design
		* wouldn't enter to color bar mode unless both scenario's32
		* above
		*/ /* Call HDCP stream-down callback */