asoc-s3c24xx_simtec.h 892 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 2008 Simtec Electronics
  3. * http://armlinux.simtec.co.uk/
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * Simtec Audio support.
  11. */
  12. /**
  13. * struct s3c24xx_audio_simtec_pdata - platform data for simtec audio
  14. * @use_mpllin: Select codec clock from MPLLin
  15. * @output_cdclk: Need to output CDCLK to the codec
  16. * @have_mic: Set if we have a MIC socket
  17. * @have_lout: Set if we have a LineOut socket
  18. * @amp_gpio: GPIO pin to enable the AMP
  19. * @amp_gain: Option GPIO to control AMP gain
  20. */
  21. struct s3c24xx_audio_simtec_pdata {
  22. unsigned int use_mpllin:1;
  23. unsigned int output_cdclk:1;
  24. unsigned int have_mic:1;
  25. unsigned int have_lout:1;
  26. int amp_gpio;
  27. int amp_gain[2];
  28. void (*startup)(void);
  29. };