2005-07-01 00:54:04 +08: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-10 09:01:20 +08:00
|
|
|
struct pxa2xx_runtime_data {
|
|
|
|
int dma_ch;
|
2013-08-12 16:42:39 +08:00
|
|
|
struct snd_dmaengine_dai_dma_data *params;
|
2005-11-17 22:10:38 +08:00
|
|
|
};
|
2008-09-10 09:01:20 +08:00
|
|
|
|
2005-11-17 22:10:38 +08:00
|
|
|
struct pxa2xx_pcm_client {
|
2013-08-12 16:42:39 +08:00
|
|
|
struct snd_dmaengine_dai_dma_data *playback_params;
|
|
|
|
struct snd_dmaengine_dai_dma_data *capture_params;
|
2005-11-17 22:10:38 +08:00
|
|
|
int (*startup)(struct snd_pcm_substream *);
|
|
|
|
void (*shutdown)(struct snd_pcm_substream *);
|
|
|
|
int (*prepare)(struct snd_pcm_substream *);
|
|
|
|
};
|
2005-07-01 00:54:04 +08:00
|
|
|
|
2005-11-17 22:10:38 +08:00
|
|
|
extern int pxa2xx_pcm_new(struct snd_card *, struct pxa2xx_pcm_client *, struct snd_pcm **);
|
2005-07-01 00:54:04 +08:00
|
|
|
|