adau1977.h 677 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * ADAU1977/ADAU1978/ADAU1979 driver
  3. *
  4. * Copyright 2014 Analog Devices Inc.
  5. * Author: Lars-Peter Clausen <lars@metafoo.de>
  6. *
  7. * Licensed under the GPL-2.
  8. */
  9. #ifndef __SOUND_SOC_CODECS_ADAU1977_H__
  10. #define __SOUND_SOC_CODECS_ADAU1977_H__
  11. #include <linux/regmap.h>
  12. struct device;
  13. enum adau1977_type {
  14. ADAU1977,
  15. ADAU1978,
  16. ADAU1979,
  17. };
  18. int adau1977_probe(struct device *dev, struct regmap *regmap,
  19. enum adau1977_type type, void (*switch_mode)(struct device *dev));
  20. extern const struct regmap_config adau1977_regmap_config;
  21. enum adau1977_clk_id {
  22. ADAU1977_SYSCLK,
  23. };
  24. enum adau1977_sysclk_src {
  25. ADAU1977_SYSCLK_SRC_MCLK,
  26. ADAU1977_SYSCLK_SRC_LRCLK,
  27. };
  28. #endif