XilinxProcessorIPLib/drivers/dp14/examples/xdp_tx_audio_example.c
u32 Dptx_AudioExample(XDp *InstancePtr, u16 DeviceId)
{
	u32 Status;

	/* Use single-stream transport (SST) mode for this example. Audio is
	 * not supported in multi-stream transport (MST) mode. */
	XDp_TxMstCfgModeDisable(InstancePtr);

	/* Do platform initialization here. This is hardware system specific -
	 * it is up to the user to implement this function. */
	Dptx_PlatformInit();
	/*******************/

	Status = Dptx_SetupExample(InstancePtr, DeviceId);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	/* Initialize DisplayPort audio. */
	Dptx_AudioInit(InstancePtr);

	XDp_TxEnableTrainAdaptive(InstancePtr, TRAIN_ADAPTIVE);
	XDp_TxSetHasRedriverInPath(InstancePtr, TRAIN_HAS_REDRIVER);

	/* A sink monitor must be connected at this point. See the polling or
	 * interrupt examples for how to wait for a connection event. */
	Status = Dptx_Run(InstancePtr);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	return XST_SUCCESS;
}
/******************************************************************************/
/**
 * The main entry point for the audio example using the XDp driver. This
 * function will set up audio, initiate link training, and a video stream will
 * start being sent over the main link.
 *
 * @param	InstancePtr is a pointer to the XDp instance.
 * @param	DeviceId is the unique device ID of the DisplayPort TX core
 *		instance.
 *
 * @return
 *		- XST_SUCCESS if the system was set up correctly and link
 *		  training was successful.
 *		- XST_FAILURE otherwise.
 *
 * @note	None.
 *
*******************************************************************************/
The main entry point for the audio example using the XDp driver. This
function will set up audio, initiate link training, and a video stream will
start being sent over the main link.

@param       InstancePtr is a pointer to the XDp instance.
@param       DeviceId is the unique device ID of the DisplayPort TX core
instance.

@return
- XST_SUCCESS if the system was set up correctly and link
training was successful.

@note        None.
The main entry point for the audio example using the XDp driver . This function will set up audio initiate link training and a video stream will start being sent over the main link . @param InstancePtr is a pointer to the XDp instance . @param DeviceId is the unique device ID of the DisplayPort TX core instance . @return - XST_SUCCESS if the system was set up correctly and link training was successful . @note None .
u32 Dptx_AudioExample(XDp *InstancePtr, u16 DeviceId)
{
	u32 Status;
	XDp_TxMstCfgModeDisable(InstancePtr);
	Dptx_PlatformInit();
	Status = Dptx_SetupExample(InstancePtr, DeviceId);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	Dptx_AudioInit(InstancePtr);
	XDp_TxEnableTrainAdaptive(InstancePtr, TRAIN_ADAPTIVE);
	XDp_TxSetHasRedriverInPath(InstancePtr, TRAIN_HAS_REDRIVER);
	Status = Dptx_Run(InstancePtr);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
u32 Dptx_AudioExample ( XDp * InstancePtr , u16 DeviceId ) { u32 Status ; XDp_TxMstCfgModeDisable ( InstancePtr ) ; Dptx_PlatformInit ( ) ; Status = Dptx_SetupExample ( InstancePtr , DeviceId ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } Dptx_AudioInit ( InstancePtr ) ; XDp_TxEnableTrainAdaptive ( InstancePtr , TRAIN_ADAPTIVE ) ; XDp_TxSetHasRedriverInPath ( InstancePtr , TRAIN_HAS_REDRIVER ) ; Status = Dptx_Run ( InstancePtr ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } return XST_SUCCESS ; }
The main entry point for the audio example using the XDp driver.
The main entry point for the audio example using the XDp driver .
/* Use single-stream transport (SST) mode for this example. Audio is
	 * not supported in multi-stream transport (MST) mode. */ /* Do platform initialization here. This is hardware system specific -
	 * it is up to the user to implement this function. */ /*******************/ /* Initialize DisplayPort audio. */ /* A sink monitor must be connected at this point. See the polling or
	 * interrupt examples for how to wait for a connection event. */