wm8580.h 964 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * wm8580.h -- audio driver for WM8580
  3. *
  4. * Copyright 2008 Samsung Electronics.
  5. * Author: Ryu Euiyoul
  6. * ryu.real@gmail.com
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. *
  13. */
  14. #ifndef _WM8580_H
  15. #define _WM8580_H
  16. #define WM8580_PLLA 1
  17. #define WM8580_PLLB 2
  18. #define WM8580_MCLK 1
  19. #define WM8580_DAC_CLKSEL 2
  20. #define WM8580_CLKOUTSRC 3
  21. #define WM8580_CLKSRC_MCLK 1
  22. #define WM8580_CLKSRC_PLLA 2
  23. #define WM8580_CLKSRC_PLLB 3
  24. #define WM8580_CLKSRC_OSC 4
  25. #define WM8580_CLKSRC_NONE 5
  26. struct wm8580_setup_data {
  27. int i2c_bus;
  28. unsigned short i2c_address;
  29. };
  30. #define WM8580_DAI_PAIFRX 0
  31. #define WM8580_DAI_PAIFTX 1
  32. extern struct snd_soc_dai wm8580_dai[];
  33. extern struct snd_soc_codec_device soc_codec_dev_wm8580;
  34. #endif