audio.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* linux/include/asm-arm/arch-s3c2410/audio.h
  2. *
  3. * (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. * Changelog:
  14. * 20-Nov-2004 BJD Created file
  15. * 07-Mar-2005 BJD Added suspend/resume calls
  16. */
  17. #ifndef __ASM_ARCH_AUDIO_H
  18. #define __ASM_ARCH_AUDIO_H __FILE__
  19. /* struct s3c24xx_iis_ops
  20. *
  21. * called from the s3c24xx audio core to deal with the architecture
  22. * or the codec's setup and control.
  23. *
  24. * the pointer to itself is passed through in case the caller wants to
  25. * embed this in an larger structure for easy reference to it's context.
  26. */
  27. struct s3c24xx_iis_ops {
  28. struct module *owner;
  29. int (*startup)(struct s3c24xx_iis_ops *me);
  30. void (*shutdown)(struct s3c24xx_iis_ops *me);
  31. int (*suspend)(struct s3c24xx_iis_ops *me);
  32. int (*resume)(struct s3c24xx_iis_ops *me);
  33. int (*open)(struct s3c24xx_iis_ops *me, snd_pcm_substream_t *strm);
  34. int (*close)(struct s3c24xx_iis_ops *me, snd_pcm_substream_t *strm);
  35. int (*prepare)(struct s3c24xx_iis_ops *me, snd_pcm_substream_t *strm, snd_pcm_runtime_t *rt);
  36. };
  37. struct s3c24xx_platdata_iis {
  38. const char *codec_clk;
  39. struct s3c24xx_iis_ops *ops;
  40. int (*match_dev)(struct device *dev);
  41. };
  42. #endif /* __ASM_ARCH_AUDIO_H */