XilinxProcessorIPLib/drivers/dp14rxss/examples/src/rx_only/xdprxss_dp14_rx.c
void DpRxSs_UnplugHandler(void *InstancePtr)
{
	/* Disable & Enable Audio */
	XDpRxSs_AudioDisable(&DpRxSsInst);
	AudioinfoFrame.frame_count = 0;
	SdpExtFrame.Header[1] = 0;
	SdpExtFrame_q.Header[1] = 0;
	SdpExtFrame.frame_count = 0;
	SdpExtFrame.frame_count = 0;

	/*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);
}
/*****************************************************************************/
/**
*
* 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)
{
	XDpRxSs_AudioDisable(&DpRxSsInst);
	AudioinfoFrame.frame_count = 0;
	SdpExtFrame.Header[1] = 0;
	SdpExtFrame_q.Header[1] = 0;
	SdpExtFrame.frame_count = 0;
	SdpExtFrame.frame_count = 0;
	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);
}
void DpRxSs_UnplugHandler ( void * InstancePtr ) { XDpRxSs_AudioDisable ( & DpRxSsInst ) ; AudioinfoFrame . frame_count = 0 ; SdpExtFrame . Header [ 1 ] = 0 ; SdpExtFrame_q . Header [ 1 ] = 0 ; SdpExtFrame . frame_count = 0 ; SdpExtFrame . frame_count = 0 ; 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 ) ; }
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 */ /*Enable Training related interrupts*/