XilinxProcessorIPLib/drivers/audio_formatter/src/xaudioformatter_sinit.c
XAudioFormatter_Config *XAudioFormatter_LookupConfig(u16 DeviceId)
{
	XAudioFormatter_Config *CfgPtr = NULL;
	u32 Index;

	/* Checks all the instances */
	for (Index = 0; Index < XPAR_XAUDIOFORMATTER_NUM_INSTANCES;
								Index++) {
		if (XAudioFormatter_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XAudioFormatter_ConfigTable[Index];
			break;
		}
	}

	return CfgPtr;
}
/*****************************************************************************/
/**
*
* XAudioFormatter_LookupConfig returns a reference to an XAudioFormatter_Config
* structure based on the unique device id, <i>DeviceId</i>. The return value
* will refer to an entry in the device configuration table defined in the
* xaudioformatter_g.c file.
*
* @param	DeviceId is the unique device ID of the device for the lookup
*		operation.
*
* @return	CfgPtr is a reference to a config record in the configuration
*		table (in xaudioformatter_g.c) corresponding to <i>DeviceId</i>,
*		or NULL if no match is found.
*
* @note		None.
******************************************************************************/
XAudioFormatter_LookupConfig returns a reference to an XAudioFormatter_Config
structure based on the unique device id, DeviceId. The return value
will refer to an entry in the device configuration table defined in the
xaudioformatter_g.c file.
XAudioFormatter_LookupConfig returns a reference to an XAudioFormatter_Config structure based on the unique device id DeviceId . The return value will refer to an entry in the device configuration table defined in the xaudioformatter_g . c file .
XAudioFormatter_Config *XAudioFormatter_LookupConfig(u16 DeviceId)
{
	XAudioFormatter_Config *CfgPtr = NULL;
	u32 Index;
	for (Index = 0; Index < XPAR_XAUDIOFORMATTER_NUM_INSTANCES;
								Index++) {
		if (XAudioFormatter_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XAudioFormatter_ConfigTable[Index];
			break;
		}
	}
	return CfgPtr;
}
XAudioFormatter_Config * XAudioFormatter_LookupConfig ( u16 DeviceId ) { XAudioFormatter_Config * CfgPtr = NULL ; u32 Index ; for ( Index = 0 ; Index < XPAR_XAUDIOFORMATTER_NUM_INSTANCES ; Index ++ ) { if ( XAudioFormatter_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XAudioFormatter_ConfigTable [ Index ] ; break ; } } return CfgPtr ; }
XAudioFormatter_LookupConfig returns a reference to an XAudioFormatter_Config
structure based on the unique device id, <i>DeviceId</i>.
XAudioFormatter_LookupConfig returns a reference to an XAudioFormatter_Config structure based on the unique device id <i > DeviceId< / i > .
/* Checks all the instances */