wsa883x.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #ifndef _WSA883X_H
  5. #define _WSA883X_H
  6. #include <linux/regmap.h>
  7. #include <sound/soc.h>
  8. #include <sound/info.h>
  9. #define WSA883X_MAX_SWR_PORTS 4
  10. #if IS_ENABLED(CONFIG_SND_SOC_WSA883X)
  11. int wsa883x_set_channel_map(struct snd_soc_component *component,
  12. u8 *port, u8 num_port, unsigned int *ch_mask,
  13. unsigned int *ch_rate, u8 *port_type);
  14. int wsa883x_codec_info_create_codec_entry(
  15. struct snd_info_entry *codec_root,
  16. struct snd_soc_component *component);
  17. int wsa883x_codec_get_dev_num(struct snd_soc_component *component);
  18. #else
  19. static int wsa883x_set_channel_map(struct snd_soc_component *component,
  20. u8 *port, u8 num_port, unsigned int *ch_mask,
  21. unsigned int *ch_rate, u8 *port_type)
  22. {
  23. return 0;
  24. }
  25. static int wsa883x_codec_info_create_codec_entry(
  26. struct snd_info_entry *codec_root,
  27. struct snd_soc_component *component)
  28. {
  29. return 0;
  30. }
  31. static int wsa883x_codec_get_dev_num(struct snd_soc_component *component)
  32. {
  33. return 0;
  34. }
  35. #endif
  36. #endif /* _WSA883X_H */