sof_maxim_common.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright(c) 2020 Intel Corporation.
  4. */
  5. /*
  6. * This file defines data structures used in Machine Driver for Intel
  7. * platforms with Maxim Codecs.
  8. */
  9. #ifndef __SOF_MAXIM_COMMON_H
  10. #define __SOF_MAXIM_COMMON_H
  11. #include <sound/soc.h>
  12. #include <sound/soc-acpi-intel-ssp-common.h>
  13. /*
  14. * Maxim MAX98373
  15. */
  16. #define MAX_98373_CODEC_DAI "max98373-aif1"
  17. #define MAX_98373_DEV0_NAME "i2c-" MAX_98373_ACPI_HID ":00"
  18. #define MAX_98373_DEV1_NAME "i2c-" MAX_98373_ACPI_HID ":01"
  19. void max_98373_dai_link(struct device *dev, struct snd_soc_dai_link *link);
  20. void max_98373_set_codec_conf(struct snd_soc_card *card);
  21. /*
  22. * Maxim MAX98390
  23. */
  24. #define MAX_98390_CODEC_DAI "max98390-aif1"
  25. #define MAX_98390_DEV0_NAME "i2c-" MAX_98390_ACPI_HID ":00"
  26. #define MAX_98390_DEV1_NAME "i2c-" MAX_98390_ACPI_HID ":01"
  27. #define MAX_98390_DEV2_NAME "i2c-" MAX_98390_ACPI_HID ":02"
  28. #define MAX_98390_DEV3_NAME "i2c-" MAX_98390_ACPI_HID ":03"
  29. void max_98390_dai_link(struct device *dev, struct snd_soc_dai_link *link);
  30. void max_98390_set_codec_conf(struct device *dev, struct snd_soc_card *card);
  31. /*
  32. * Maxim MAX98357A/MAX98360A
  33. */
  34. #define MAX_98357A_CODEC_DAI "HiFi"
  35. #define MAX_98357A_DEV0_NAME MAX_98357A_ACPI_HID ":00"
  36. #define MAX_98360A_DEV0_NAME MAX_98360A_ACPI_HID ":00"
  37. void max_98357a_dai_link(struct snd_soc_dai_link *link);
  38. void max_98360a_dai_link(struct snd_soc_dai_link *link);
  39. #endif /* __SOF_MAXIM_COMMON_H */