audio.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* arch/arm/mach-s3c2410/include/mach/audio.h
  2. *
  3. * Copyright (c) 2004-2005 Simtec Electronics
  4. * http://www.simtec.co.uk/products/SWLINUX/
  5. * Ben Dooks <ben@simtec.co.uk>
  6. *
  7. * S3C24XX - Audio platfrom_device info
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef __ASM_ARCH_AUDIO_H
  14. #define __ASM_ARCH_AUDIO_H __FILE__
  15. /* struct s3c24xx_iis_ops
  16. *
  17. * called from the s3c24xx audio core to deal with the architecture
  18. * or the codec's setup and control.
  19. *
  20. * the pointer to itself is passed through in case the caller wants to
  21. * embed this in an larger structure for easy reference to it's context.
  22. */
  23. struct s3c24xx_iis_ops {
  24. struct module *owner;
  25. int (*startup)(struct s3c24xx_iis_ops *me);
  26. void (*shutdown)(struct s3c24xx_iis_ops *me);
  27. int (*suspend)(struct s3c24xx_iis_ops *me);
  28. int (*resume)(struct s3c24xx_iis_ops *me);
  29. int (*open)(struct s3c24xx_iis_ops *me, struct snd_pcm_substream *strm);
  30. int (*close)(struct s3c24xx_iis_ops *me, struct snd_pcm_substream *strm);
  31. int (*prepare)(struct s3c24xx_iis_ops *me, struct snd_pcm_substream *strm, struct snd_pcm_runtime *rt);
  32. };
  33. struct s3c24xx_platdata_iis {
  34. const char *codec_clk;
  35. struct s3c24xx_iis_ops *ops;
  36. int (*match_dev)(struct device *dev);
  37. };
  38. #endif /* __ASM_ARCH_AUDIO_H */