sof_realtek_common.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 Realtek Codecs.
  8. */
  9. #ifndef __SOF_REALTEK_COMMON_H
  10. #define __SOF_REALTEK_COMMON_H
  11. #include <sound/soc.h>
  12. #include <sound/soc-acpi-intel-ssp-common.h>
  13. /*
  14. * Realtek ALC1011
  15. */
  16. #define RT1011_CODEC_DAI "rt1011-aif"
  17. #define RT1011_DEV0_NAME "i2c-" RT1011_ACPI_HID ":00"
  18. #define RT1011_DEV1_NAME "i2c-" RT1011_ACPI_HID ":01"
  19. #define RT1011_DEV2_NAME "i2c-" RT1011_ACPI_HID ":02"
  20. #define RT1011_DEV3_NAME "i2c-" RT1011_ACPI_HID ":03"
  21. void sof_rt1011_dai_link(struct device *dev, struct snd_soc_dai_link *link);
  22. void sof_rt1011_codec_conf(struct device *dev, struct snd_soc_card *card);
  23. /*
  24. * Realtek ALC1015 (AUTO)
  25. */
  26. #define RT1015P_CODEC_DAI "HiFi"
  27. #define RT1015P_DEV0_NAME RT1015P_ACPI_HID ":00"
  28. void sof_rt1015p_dai_link(struct snd_soc_dai_link *link);
  29. void sof_rt1015p_codec_conf(struct snd_soc_card *card);
  30. /*
  31. * Realtek ALC1015 (I2C)
  32. */
  33. #define RT1015_CODEC_DAI "rt1015-aif"
  34. #define RT1015_DEV0_NAME "i2c-" RT1015_ACPI_HID ":00"
  35. #define RT1015_DEV1_NAME "i2c-" RT1015_ACPI_HID ":01"
  36. void sof_rt1015_dai_link(struct snd_soc_dai_link *link);
  37. void sof_rt1015_codec_conf(struct snd_soc_card *card);
  38. /*
  39. * Realtek ALC1308
  40. */
  41. #define RT1308_CODEC_DAI "rt1308-aif"
  42. #define RT1308_DEV0_NAME "i2c-" RT1308_ACPI_HID ":00"
  43. void sof_rt1308_dai_link(struct snd_soc_dai_link *link);
  44. /*
  45. * Realtek ALC1019
  46. */
  47. #define RT1019P_CODEC_DAI "HiFi"
  48. #define RT1019P_DEV0_NAME RT1019P_ACPI_HID ":00"
  49. void sof_rt1019p_dai_link(struct snd_soc_dai_link *link);
  50. #endif /* __SOF_REALTEK_COMMON_H */