s6000-pcm.h 754 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * ALSA PCM interface for the Stretch s6000 family
  3. *
  4. * Author: Daniel Gloeckner, <dg@emlix.com>
  5. * Copyright: (C) 2009 emlix GmbH <info@emlix.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef _S6000_PCM_H
  12. #define _S6000_PCM_H
  13. struct snd_soc_dai;
  14. struct snd_pcm_substream;
  15. struct s6000_pcm_dma_params {
  16. unsigned int (*check_xrun)(struct snd_soc_dai *cpu_dai);
  17. int (*trigger)(struct snd_pcm_substream *substream, int cmd, int after);
  18. dma_addr_t sif_in;
  19. dma_addr_t sif_out;
  20. u32 dma_in;
  21. u32 dma_out;
  22. int irq;
  23. int same_rate;
  24. spinlock_t lock;
  25. int in_use;
  26. int rate;
  27. };
  28. #endif