XilinxProcessorIPLib/drivers/v_sdirxss/examples/xuhdsdi_example/xuhdsdi_example.c
void XSdiEnableSDIAudioPassThrough(XSdiAud_SampRate SampleRate, u32 Asx)
{
	XSdiVid_Transport *RxTransport;
	XSdiAud_Emb_Vid_Props AudEmbVidProps;

	/* Enable SDI Audio Extract to Audio Buffer path */
	Xil_Out32((UINTPTR)(AXIS_SWITCH_RX + 0x40), (u32)(0x80000000));
	Xil_Out32((UINTPTR)(AXIS_SWITCH_RX + 0x44), (u32)(0x0));
	Xil_Out32((UINTPTR)(AXIS_SWITCH_RX), (u32)(0x2));

	/* Enable Audio Buffer to SDI Audio Embed path */
	Xil_Out32((UINTPTR)(AXIS_SWITCH_TX + 0x40), (u32)(0x1));
	Xil_Out32((UINTPTR)(AXIS_SWITCH_TX), (u32)(0x2));

	/* Enable 32-Channel SDI Audio Embed */
	RxTransport = XV_SdiRxSs_GetTransport(&SdiRxSs);
	AudEmbVidProps.XSdiAud_TFamily = RxTransport->TFamily;
	AudEmbVidProps.XSdiAud_TRate = RxTransport->TRate;
	AudEmbVidProps.XSdiAud_TScan = RxTransport->TScan;
	XSdiAud_Emb_SetVidProps(&SdiEmbed, &AudEmbVidProps);
	XSdiAud_Emb_SetAsx(&SdiEmbed, Asx);
	XSdiAud_Emb_SetSmpSize(&SdiEmbed, 1);
	XSdiAud_Emb_SetSmpRate(&SdiEmbed, SampleRate);
	XSdiAud_SetCh(&SdiEmbed, 0xFFFFFFFF);
	XSdiAud_Enable(&SdiEmbed, 1);

	/* For non SD mode, Enable 32-Channel SDI Audio Extract.*/
	/* In-case of SD-mode enable only Valid Audio channels in 0x20 register*/
	/* Enabling all 32-channels and driving only few may not work.*/
	XSdiAud_SetCh(&SdiExtract, 0xFFFFFFFF);
	XSdiAud_Enable(&SdiExtract, 1);
}
/*****************************************************************************/
/**
 *
 * This function enables the SDI Audio Pass-Through Path (Audio extracted
 * from SDI RX is embedded back on to SDI TX)
 *
 * @return	None.
 *
 * @note	None.
 *
 ******************************************************************************/
This function enables the SDI Audio Pass-Through Path (Audio extracted
from SDI RX is embedded back on to SDI TX)

@return      None.

@note        None.
This function enables the SDI Audio Pass - Through Path ( Audio extracted from SDI RX is embedded back on to SDI TX ) @return None . @note None .
void XSdiEnableSDIAudioPassThrough(XSdiAud_SampRate SampleRate, u32 Asx)
{
	XSdiVid_Transport *RxTransport;
	XSdiAud_Emb_Vid_Props AudEmbVidProps;
	Xil_Out32((UINTPTR)(AXIS_SWITCH_RX + 0x40), (u32)(0x80000000));
	Xil_Out32((UINTPTR)(AXIS_SWITCH_RX + 0x44), (u32)(0x0));
	Xil_Out32((UINTPTR)(AXIS_SWITCH_RX), (u32)(0x2));
	Xil_Out32((UINTPTR)(AXIS_SWITCH_TX + 0x40), (u32)(0x1));
	Xil_Out32((UINTPTR)(AXIS_SWITCH_TX), (u32)(0x2));
	RxTransport = XV_SdiRxSs_GetTransport(&SdiRxSs);
	AudEmbVidProps.XSdiAud_TFamily = RxTransport->TFamily;
	AudEmbVidProps.XSdiAud_TRate = RxTransport->TRate;
	AudEmbVidProps.XSdiAud_TScan = RxTransport->TScan;
	XSdiAud_Emb_SetVidProps(&SdiEmbed, &AudEmbVidProps);
	XSdiAud_Emb_SetAsx(&SdiEmbed, Asx);
	XSdiAud_Emb_SetSmpSize(&SdiEmbed, 1);
	XSdiAud_Emb_SetSmpRate(&SdiEmbed, SampleRate);
	XSdiAud_SetCh(&SdiEmbed, 0xFFFFFFFF);
	XSdiAud_Enable(&SdiEmbed, 1);
	XSdiAud_SetCh(&SdiExtract, 0xFFFFFFFF);
	XSdiAud_Enable(&SdiExtract, 1);
}
void XSdiEnableSDIAudioPassThrough ( XSdiAud_SampRate SampleRate , u32 Asx ) { XSdiVid_Transport * RxTransport ; XSdiAud_Emb_Vid_Props AudEmbVidProps ; Xil_Out32 ( ( UINTPTR ) ( AXIS_SWITCH_RX + 0x40 ) , ( u32 ) ( 0x80000000 ) ) ; Xil_Out32 ( ( UINTPTR ) ( AXIS_SWITCH_RX + 0x44 ) , ( u32 ) ( 0x0 ) ) ; Xil_Out32 ( ( UINTPTR ) ( AXIS_SWITCH_RX ) , ( u32 ) ( 0x2 ) ) ; Xil_Out32 ( ( UINTPTR ) ( AXIS_SWITCH_TX + 0x40 ) , ( u32 ) ( 0x1 ) ) ; Xil_Out32 ( ( UINTPTR ) ( AXIS_SWITCH_TX ) , ( u32 ) ( 0x2 ) ) ; RxTransport = XV_SdiRxSs_GetTransport ( & SdiRxSs ) ; AudEmbVidProps . XSdiAud_TFamily = RxTransport -> TFamily ; AudEmbVidProps . XSdiAud_TRate = RxTransport -> TRate ; AudEmbVidProps . XSdiAud_TScan = RxTransport -> TScan ; XSdiAud_Emb_SetVidProps ( & SdiEmbed , & AudEmbVidProps ) ; XSdiAud_Emb_SetAsx ( & SdiEmbed , Asx ) ; XSdiAud_Emb_SetSmpSize ( & SdiEmbed , 1 ) ; XSdiAud_Emb_SetSmpRate ( & SdiEmbed , SampleRate ) ; XSdiAud_SetCh ( & SdiEmbed , 0xFFFFFFFF ) ; XSdiAud_Enable ( & SdiEmbed , 1 ) ; XSdiAud_SetCh ( & SdiExtract , 0xFFFFFFFF ) ; XSdiAud_Enable ( & SdiExtract , 1 ) ; }
This function enables the SDI Audio Pass-Through Path (Audio extracted
 from SDI RX is embedded back on to SDI TX)
This function enables the SDI Audio Pass - Through Path ( Audio extracted from SDI RX is embedded back on to SDI TX )
/* Enable SDI Audio Extract to Audio Buffer path */ /* Enable Audio Buffer to SDI Audio Embed path */ /* Enable 32-Channel SDI Audio Embed */ /* For non SD mode, Enable 32-Channel SDI Audio Extract.*/ /* In-case of SD-mode enable only Valid Audio channels in 0x20 register*/ /* Enabling all 32-channels and driving only few may not work.*/