/* Unfortunately, ASoC V1 does make it possible to determine the DMA/SSI data when a substream is created, so for now we need to store this data into a global variable. This means that we can only support one DMA controller, and hence only one SSI.  */
int fsl_dma_configure(struct fsl_dma_info *dma_info)
/* Unfortunately, ASoC V1 does make it possible to determine the DMA/SSI data when a substream is created, so for now we need to store this data into a global variable. This means that we can only support one DMA controller, and hence only one SSI.  */
int fsl_dma_configure(struct fsl_dma_info *dma_info)
{
	static int initialized;
	if (initialized)
		return 0;
	dma_global_data.ssi_stx_phys = dma_info->ssi_stx_phys;
	dma_global_data.ssi_srx_phys = dma_info->ssi_srx_phys;
	dma_global_data.dma_channel[0] = dma_info->dma_channel[0];
	dma_global_data.dma_channel[1] = dma_info->dma_channel[1];
	dma_global_data.irq[0] = dma_info->dma_irq[0];
	dma_global_data.irq[1] = dma_info->dma_irq[1];
	dma_global_data.assigned[0] = 0;
	dma_global_data.assigned[1] = 0;
	initialized = 1;
	return 1;
}