2005-06-30 12:54:04 -04:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
2008-09-09 21:01:20 -04:00
|
|
|
#include <asm/dma.h>
|
2005-06-30 12:54:04 -04:00
|
|
|
|
2008-09-09 21:01:20 -04:00
|
|
|
struct pxa2xx_runtime_data {
|
|
|
|
int dma_ch;
|
|
|
|
struct pxa2xx_pcm_dma_params *params;
|
|
|
|
pxa_dma_desc *dma_desc_array;
|
|
|
|
dma_addr_t dma_desc_array_phys;
|
2005-11-17 09:10:38 -05:00
|
|
|
};
|
2008-09-09 21:01:20 -04:00
|
|
|
|
2005-11-17 09:10:38 -05:00
|
|
|
struct pxa2xx_pcm_client {
|
|
|
|
struct pxa2xx_pcm_dma_params *playback_params;
|
|
|
|
struct pxa2xx_pcm_dma_params *capture_params;
|
|
|
|
int (*startup)(struct snd_pcm_substream *);
|
|
|
|
void (*shutdown)(struct snd_pcm_substream *);
|
|
|
|
int (*prepare)(struct snd_pcm_substream *);
|
|
|
|
};
|
2005-06-30 12:54:04 -04:00
|
|
|
|
2005-11-17 09:10:38 -05:00
|
|
|
extern int pxa2xx_pcm_new(struct snd_card *, struct pxa2xx_pcm_client *, struct snd_pcm **);
|
2005-06-30 12:54:04 -04:00
|
|
|
|