rt5660.h 578 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * linux/sound/rt5660.h -- Platform data for RT5660
  4. *
  5. * Copyright 2016 Realtek Semiconductor Corp.
  6. * Author: Oder Chiou <[email protected]>
  7. */
  8. #ifndef __LINUX_SND_RT5660_H
  9. #define __LINUX_SND_RT5660_H
  10. enum rt5660_dmic1_data_pin {
  11. RT5660_DMIC1_NULL,
  12. RT5660_DMIC1_DATA_GPIO2,
  13. RT5660_DMIC1_DATA_IN1P,
  14. };
  15. struct rt5660_platform_data {
  16. /* IN1 & IN3 can optionally be differential */
  17. bool in1_diff;
  18. bool in3_diff;
  19. bool use_ldo2;
  20. bool poweroff_codec_in_suspend;
  21. enum rt5660_dmic1_data_pin dmic1_data_pin;
  22. };
  23. #endif