XilinxProcessorIPLib/drivers/dp14txss/examples/src/zcu_pt_dp14_mst/xvid_pat_gen.c
void Vpg_Audio_start(void){
	//unsigned int MicrosecToWait = 1;
	usleep(MicrosecToWait);

	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], Audio_Control,	0x1);
	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], Audio_Control,	0x2);


	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], AudioPatternCH1,0x2);

	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], AudioPatternCH2,0x2);

	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], AudioCHStatus1, 0x10000244);//channel status

	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], AudioCHStatus2,0x40000000);//channel status

	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], AudioSampleRate_Chcount,0x202);
}
/*****************************************************************************/
/**
*
* This function starts audio pattern generator
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function starts audio pattern generator
This function starts audio pattern generator
void Vpg_Audio_start(void){
	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], Audio_Control,	0x1);
	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], Audio_Control,	0x2);
	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], AudioPatternCH1,0x2);
	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], AudioPatternCH2,0x2);
	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], AudioCHStatus1, 0x10000244);
	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], AudioCHStatus2,0x40000000);
	usleep(MicrosecToWait);
	XDp_WriteReg((XILINX_DISPLAYPORT_VID_BASE_ADDRESS) +
		StreamOffset[0], AudioSampleRate_Chcount,0x202);
}
void Vpg_Audio_start ( void ) { usleep ( MicrosecToWait ) ; XDp_WriteReg ( ( XILINX_DISPLAYPORT_VID_BASE_ADDRESS ) + StreamOffset [ 0 ] , Audio_Control , 0x1 ) ; usleep ( MicrosecToWait ) ; XDp_WriteReg ( ( XILINX_DISPLAYPORT_VID_BASE_ADDRESS ) + StreamOffset [ 0 ] , Audio_Control , 0x2 ) ; usleep ( MicrosecToWait ) ; XDp_WriteReg ( ( XILINX_DISPLAYPORT_VID_BASE_ADDRESS ) + StreamOffset [ 0 ] , AudioPatternCH1 , 0x2 ) ; usleep ( MicrosecToWait ) ; XDp_WriteReg ( ( XILINX_DISPLAYPORT_VID_BASE_ADDRESS ) + StreamOffset [ 0 ] , AudioPatternCH2 , 0x2 ) ; usleep ( MicrosecToWait ) ; XDp_WriteReg ( ( XILINX_DISPLAYPORT_VID_BASE_ADDRESS ) + StreamOffset [ 0 ] , AudioCHStatus1 , 0x10000244 ) ; usleep ( MicrosecToWait ) ; XDp_WriteReg ( ( XILINX_DISPLAYPORT_VID_BASE_ADDRESS ) + StreamOffset [ 0 ] , AudioCHStatus2 , 0x40000000 ) ; usleep ( MicrosecToWait ) ; XDp_WriteReg ( ( XILINX_DISPLAYPORT_VID_BASE_ADDRESS ) + StreamOffset [ 0 ] , AudioSampleRate_Chcount , 0x202 ) ; }
This function starts audio pattern generator
This function starts audio pattern generator
//unsigned int MicrosecToWait = 1; //channel status //channel status