XilinxProcessorIPLib/drivers/dp14txss/examples/src/pt_only/rx.c
void DpRxSs_UnplugHandler(void *InstancePtr)
{
	/* Disable & Enable Audio */
	rx_unplugged = 1;
//	appx_fs_dup = 0;
//	XDpRxSs_AudioDisable(&DpRxSsInst);
//    audio_info_avail = 0;
    AudioinfoFrame.frame_count = 0;
    AudioinfoFrame.all_count = 0;
	SdpExtFrame.Header[1] = 0;
	SdpExtFrame_q.Header[1] = 0;
	SdpExtFrame.frame_count = 0;
	SdpExtFrame.frame_count = 0;
	type_vsc = 0;

	// mask the TX interrupts to avoid spurious HPDs
	mask_intr();

	/*Enable Training related interrupts*/
	XDp_RxInterruptDisable(DpRxSsInst.DpPtr,
			       XDP_RX_INTERRUPT_MASK_ALL_MASK);
	XDp_RxInterruptDisable1(DpRxSsInst.DpPtr, 0xFFFFFFFF);

	XDp_RxInterruptEnable(DpRxSsInst.DpPtr,
			      XDP_RX_INTERRUPT_MASK_TP1_MASK |
			      XDP_RX_INTERRUPT_MASK_TP2_MASK |
			XDP_RX_INTERRUPT_MASK_TP3_MASK|
			XDP_RX_INTERRUPT_MASK_POWER_STATE_MASK|
			XDP_RX_INTERRUPT_MASK_CRC_TEST_MASK|
			XDP_RX_INTERRUPT_MASK_BW_CHANGE_MASK);

	XDp_RxInterruptEnable1(DpRxSsInst.DpPtr,
			XDP_RX_INTERRUPT_MASK_TP4_MASK|
			XDP_RX_INTERRUPT_MASK_ACCESS_LANE_SET_MASK|
			XDP_RX_INTERRUPT_MASK_ACCESS_LINK_QUAL_MASK|
			XDP_RX_INTERRUPT_MASK_ACCESS_ERROR_COUNTER_MASK);

	XDp_RxGenerateHpdInterrupt(DpRxSsInst.DpPtr, 5000);
	DpRxSsInst.link_up_trigger = 0;
	DpRxSsInst.VBlankCount = 0;
	DpRxSsInst.no_video_trigger = 1;

}
/*****************************************************************************/
/**
*
* This function is the callback function for when the unplug event occurs.
*
* @param    InstancePtr is a pointer to the XDpRxSs instance.
*
* @return    None.
*
* @note        None.
*
******************************************************************************/
This function is the callback function for when the unplug event occurs.
This function is the callback function for when the unplug event occurs .
void DpRxSs_UnplugHandler(void *InstancePtr)
{
	rx_unplugged = 1;
    AudioinfoFrame.frame_count = 0;
    AudioinfoFrame.all_count = 0;
	SdpExtFrame.Header[1] = 0;
	SdpExtFrame_q.Header[1] = 0;
	SdpExtFrame.frame_count = 0;
	SdpExtFrame.frame_count = 0;
	type_vsc = 0;
	mask_intr();
	XDp_RxInterruptDisable(DpRxSsInst.DpPtr,
			       XDP_RX_INTERRUPT_MASK_ALL_MASK);
	XDp_RxInterruptDisable1(DpRxSsInst.DpPtr, 0xFFFFFFFF);
	XDp_RxInterruptEnable(DpRxSsInst.DpPtr,
			      XDP_RX_INTERRUPT_MASK_TP1_MASK |
			      XDP_RX_INTERRUPT_MASK_TP2_MASK |
			XDP_RX_INTERRUPT_MASK_TP3_MASK|
			XDP_RX_INTERRUPT_MASK_POWER_STATE_MASK|
			XDP_RX_INTERRUPT_MASK_CRC_TEST_MASK|
			XDP_RX_INTERRUPT_MASK_BW_CHANGE_MASK);
	XDp_RxInterruptEnable1(DpRxSsInst.DpPtr,
			XDP_RX_INTERRUPT_MASK_TP4_MASK|
			XDP_RX_INTERRUPT_MASK_ACCESS_LANE_SET_MASK|
			XDP_RX_INTERRUPT_MASK_ACCESS_LINK_QUAL_MASK|
			XDP_RX_INTERRUPT_MASK_ACCESS_ERROR_COUNTER_MASK);
	XDp_RxGenerateHpdInterrupt(DpRxSsInst.DpPtr, 5000);
	DpRxSsInst.link_up_trigger = 0;
	DpRxSsInst.VBlankCount = 0;
	DpRxSsInst.no_video_trigger = 1;
}
void DpRxSs_UnplugHandler ( void * InstancePtr ) { rx_unplugged = 1 ; AudioinfoFrame . frame_count = 0 ; AudioinfoFrame . all_count = 0 ; SdpExtFrame . Header [ 1 ] = 0 ; SdpExtFrame_q . Header [ 1 ] = 0 ; SdpExtFrame . frame_count = 0 ; SdpExtFrame . frame_count = 0 ; type_vsc = 0 ; mask_intr ( ) ; XDp_RxInterruptDisable ( DpRxSsInst . DpPtr , XDP_RX_INTERRUPT_MASK_ALL_MASK ) ; XDp_RxInterruptDisable1 ( DpRxSsInst . DpPtr , 0xFFFFFFFF ) ; XDp_RxInterruptEnable ( DpRxSsInst . DpPtr , XDP_RX_INTERRUPT_MASK_TP1_MASK | XDP_RX_INTERRUPT_MASK_TP2_MASK | XDP_RX_INTERRUPT_MASK_TP3_MASK | XDP_RX_INTERRUPT_MASK_POWER_STATE_MASK | XDP_RX_INTERRUPT_MASK_CRC_TEST_MASK | XDP_RX_INTERRUPT_MASK_BW_CHANGE_MASK ) ; XDp_RxInterruptEnable1 ( DpRxSsInst . DpPtr , XDP_RX_INTERRUPT_MASK_TP4_MASK | XDP_RX_INTERRUPT_MASK_ACCESS_LANE_SET_MASK | XDP_RX_INTERRUPT_MASK_ACCESS_LINK_QUAL_MASK | XDP_RX_INTERRUPT_MASK_ACCESS_ERROR_COUNTER_MASK ) ; XDp_RxGenerateHpdInterrupt ( DpRxSsInst . DpPtr , 5000 ) ; DpRxSsInst . link_up_trigger = 0 ; DpRxSsInst . VBlankCount = 0 ; DpRxSsInst . no_video_trigger = 1 ; }
This function is the callback function for when the unplug event occurs.
This function is the callback function for when the unplug event occurs .
/* Disable & Enable Audio */ //	appx_fs_dup = 0; //	XDpRxSs_AudioDisable(&DpRxSsInst); //    audio_info_avail = 0; // mask the TX interrupts to avoid spurious HPDs /*Enable Training related interrupts*/