XilinxProcessorIPLib/drivers/v_sdirxss/examples/xuhdsdi_example/xuhdsdi_example.c
void XSdiAud_DetSRChangeHandler(void *CallBackRef)
{
	XSdiAud *InstancePtr = (XSdiAud *)CallBackRef;

	if (InstancePtr->Config.IsEmbed == 1) {

		xil_printf("\n\nINFO>> SDI Audio Extract: Detected change in Audio Sample Rate \n\r");

		/* Disable Audio */
		if (XSDIAudioMode == XSDI_SDI_PASS_THROUGH) {
			XSdiDisableSDIAudioPassThrough();
		} else if (XSDIAudioMode == XSDI_AES_CAPTURE_PLAYBACK) {
			XSdiDisableAESAudioPlayback();
		}

		/* Enable Audio Status Update Interrupt (to query audio properties before enabling the audio) */
		XSdiAud_IntrEnable(&SdiExtract, XSDIAUD_INT_EN_AUD_STAT_UPDATE_MASK);
	}
}
/*****************************************************************************/
/**
* This function is the callback function for the sample rate change interrupt.
*
* @param  CallBackRef is a pointer to the callback function.
*
* @return None.
*
******************************************************************************/
This function is the callback function for the sample rate change interrupt.
This function is the callback function for the sample rate change interrupt .
void XSdiAud_DetSRChangeHandler(void *CallBackRef)
{
	XSdiAud *InstancePtr = (XSdiAud *)CallBackRef;
	if (InstancePtr->Config.IsEmbed == 1) {
		xil_printf("\n\nINFO>> SDI Audio Extract: Detected change in Audio Sample Rate \n\r");
		if (XSDIAudioMode == XSDI_SDI_PASS_THROUGH) {
			XSdiDisableSDIAudioPassThrough();
		} else if (XSDIAudioMode == XSDI_AES_CAPTURE_PLAYBACK) {
			XSdiDisableAESAudioPlayback();
		}
		XSdiAud_IntrEnable(&SdiExtract, XSDIAUD_INT_EN_AUD_STAT_UPDATE_MASK);
	}
}
void XSdiAud_DetSRChangeHandler ( void * CallBackRef ) { XSdiAud * InstancePtr = ( XSdiAud * ) CallBackRef ; if ( InstancePtr -> Config . IsEmbed == 1 ) { xil_printf ( " \n \n \n \r " ) ; if ( XSDIAudioMode == XSDI_SDI_PASS_THROUGH ) { XSdiDisableSDIAudioPassThrough ( ) ; } else if ( XSDIAudioMode == XSDI_AES_CAPTURE_PLAYBACK ) { XSdiDisableAESAudioPlayback ( ) ; } XSdiAud_IntrEnable ( & SdiExtract , XSDIAUD_INT_EN_AUD_STAT_UPDATE_MASK ) ; } }
This function is the callback function for the sample rate change interrupt.
This function is the callback function for the sample rate change interrupt .
/* Disable Audio */ /* Enable Audio Status Update Interrupt (to query audio properties before enabling the audio) */