soc-acpi-intel-glk-match.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * soc-acpi-intel-glk-match.c - tables and support for GLK ACPI enumeration.
  4. *
  5. * Copyright (c) 2018, Intel Corporation.
  6. *
  7. */
  8. #include <sound/soc-acpi.h>
  9. #include <sound/soc-acpi-intel-match.h>
  10. static const struct snd_soc_acpi_codecs essx_83x6 = {
  11. .num_codecs = 3,
  12. .codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
  13. };
  14. static const struct snd_soc_acpi_codecs glk_codecs = {
  15. .num_codecs = 1,
  16. .codecs = {"MX98357A"}
  17. };
  18. struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[] = {
  19. {
  20. .id = "INT343A",
  21. .drv_name = "glk_alc298s_i2s",
  22. .fw_filename = "intel/dsp_fw_glk.bin",
  23. .sof_tplg_filename = "sof-glk-alc298.tplg",
  24. },
  25. {
  26. .id = "DLGS7219",
  27. .drv_name = "glk_da7219_mx98357a",
  28. .fw_filename = "intel/dsp_fw_glk.bin",
  29. .machine_quirk = snd_soc_acpi_codec_list,
  30. .quirk_data = &glk_codecs,
  31. .sof_tplg_filename = "sof-glk-da7219.tplg",
  32. },
  33. {
  34. .id = "10EC5682",
  35. .drv_name = "glk_rt5682_mx98357a",
  36. .fw_filename = "intel/dsp_fw_glk.bin",
  37. .machine_quirk = snd_soc_acpi_codec_list,
  38. .quirk_data = &glk_codecs,
  39. .sof_tplg_filename = "sof-glk-rt5682.tplg",
  40. },
  41. {
  42. .id = "RTL5682",
  43. .drv_name = "glk_rt5682_max98357a",
  44. .machine_quirk = snd_soc_acpi_codec_list,
  45. .quirk_data = &glk_codecs,
  46. .sof_tplg_filename = "sof-glk-rt5682.tplg",
  47. },
  48. {
  49. .id = "10134242",
  50. .drv_name = "glk_cs4242_mx98357a",
  51. .fw_filename = "intel/dsp_fw_glk.bin",
  52. .machine_quirk = snd_soc_acpi_codec_list,
  53. .quirk_data = &glk_codecs,
  54. .sof_tplg_filename = "sof-glk-cs42l42.tplg",
  55. },
  56. {
  57. .comp_ids = &essx_83x6,
  58. .drv_name = "sof-essx8336",
  59. .sof_tplg_filename = "sof-glk-es8336", /* the tplg suffix is added at run time */
  60. .tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER |
  61. SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
  62. SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
  63. },
  64. {},
  65. };
  66. EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_glk_machines);