/* * linux/sound/arm/pxa2xx-pcm.h -- ALSA PCM interface for the Intel PXA2xx chip * * Author: Nicolas Pitre * Created: Nov 30, 2004 * Copyright: MontaVista Software, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */#include <mach/dma.h>structpxa2xx_runtime_data{intdma_ch;structsnd_dmaengine_dai_dma_data*params;pxa_dma_desc*dma_desc_array;dma_addr_tdma_desc_array_phys;};structpxa2xx_pcm_client{structsnd_dmaengine_dai_dma_data*playback_params;structsnd_dmaengine_dai_dma_data*capture_params;int(*startup)(structsnd_pcm_substream*);void(*shutdown)(structsnd_pcm_substream*);int(*prepare)(structsnd_pcm_substream*);};externintpxa2xx_pcm_new(structsnd_card*,structpxa2xx_pcm_client*,structsnd_pcm**);