pxa2xx-pcm.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * linux/sound/arm/pxa2xx-pcm.h -- ALSA PCM interface for the Intel PXA2xx chip
  3. *
  4. * Author: Nicolas Pitre
  5. * Created: Nov 30, 2004
  6. * Copyright: MontaVista Software, Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef _PXA2XX_PCM_H
  13. #define _PXA2XX_PCM_H
  14. struct pxa2xx_pcm_dma_params {
  15. char *name; /* stream identifier */
  16. u32 dcmd; /* DMA descriptor dcmd field */
  17. volatile u32 *drcmr; /* the DMA request channel to use */
  18. u32 dev_addr; /* device physical address for DMA */
  19. };
  20. struct pxa2xx_gpio {
  21. u32 sys;
  22. u32 rx;
  23. u32 tx;
  24. u32 clk;
  25. u32 frm;
  26. };
  27. /* pxa2xx DAI ID's */
  28. #define PXA2XX_DAI_AC97_HIFI 0
  29. #define PXA2XX_DAI_AC97_AUX 1
  30. #define PXA2XX_DAI_AC97_MIC 2
  31. #define PXA2XX_DAI_I2S 0
  32. #define PXA2XX_DAI_SSP1 0
  33. #define PXA2XX_DAI_SSP2 1
  34. #define PXA2XX_DAI_SSP3 2
  35. extern struct snd_soc_cpu_dai pxa_ac97_dai[3];
  36. extern struct snd_soc_cpu_dai pxa_i2s_dai;
  37. extern struct snd_soc_cpu_dai pxa_ssp_dai[3];
  38. /* platform data */
  39. extern struct snd_soc_platform pxa2xx_soc_platform;
  40. extern struct snd_ac97_bus_ops pxa2xx_ac97_ops;
  41. #endif