soc-acpi-intel-adl-match.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * soc-apci-intel-adl-match.c - tables and support for ADL ACPI enumeration.
  4. *
  5. * Copyright (c) 2020, Intel Corporation.
  6. */
  7. #include <sound/soc-acpi.h>
  8. #include <sound/soc-acpi-intel-match.h>
  9. static const struct snd_soc_acpi_codecs essx_83x6 = {
  10. .num_codecs = 3,
  11. .codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
  12. };
  13. static const struct snd_soc_acpi_endpoint single_endpoint = {
  14. .num = 0,
  15. .aggregated = 0,
  16. .group_position = 0,
  17. .group_id = 0,
  18. };
  19. static const struct snd_soc_acpi_endpoint spk_l_endpoint = {
  20. .num = 0,
  21. .aggregated = 1,
  22. .group_position = 0,
  23. .group_id = 1,
  24. };
  25. static const struct snd_soc_acpi_endpoint spk_r_endpoint = {
  26. .num = 0,
  27. .aggregated = 1,
  28. .group_position = 1,
  29. .group_id = 1,
  30. };
  31. static const struct snd_soc_acpi_adr_device rt711_0_adr[] = {
  32. {
  33. .adr = 0x000020025D071100ull,
  34. .num_endpoints = 1,
  35. .endpoints = &single_endpoint,
  36. .name_prefix = "rt711"
  37. }
  38. };
  39. static const struct snd_soc_acpi_adr_device rt1308_1_group1_adr[] = {
  40. {
  41. .adr = 0x000120025D130800ull,
  42. .num_endpoints = 1,
  43. .endpoints = &spk_l_endpoint,
  44. .name_prefix = "rt1308-1"
  45. }
  46. };
  47. static const struct snd_soc_acpi_adr_device rt1308_2_group1_adr[] = {
  48. {
  49. .adr = 0x000220025D130800ull,
  50. .num_endpoints = 1,
  51. .endpoints = &spk_r_endpoint,
  52. .name_prefix = "rt1308-2"
  53. }
  54. };
  55. static const struct snd_soc_acpi_adr_device rt715_3_adr[] = {
  56. {
  57. .adr = 0x000320025D071500ull,
  58. .num_endpoints = 1,
  59. .endpoints = &single_endpoint,
  60. .name_prefix = "rt715"
  61. }
  62. };
  63. static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = {
  64. {
  65. .adr = 0x000030025D071101ull,
  66. .num_endpoints = 1,
  67. .endpoints = &single_endpoint,
  68. .name_prefix = "rt711"
  69. }
  70. };
  71. static const struct snd_soc_acpi_adr_device rt711_sdca_2_adr[] = {
  72. {
  73. .adr = 0x000230025D071101ull,
  74. .num_endpoints = 1,
  75. .endpoints = &single_endpoint,
  76. .name_prefix = "rt711"
  77. }
  78. };
  79. static const struct snd_soc_acpi_adr_device rt1316_1_group1_adr[] = {
  80. {
  81. .adr = 0x000131025D131601ull, /* unique ID is set for some reason */
  82. .num_endpoints = 1,
  83. .endpoints = &spk_l_endpoint,
  84. .name_prefix = "rt1316-1"
  85. }
  86. };
  87. static const struct snd_soc_acpi_adr_device rt1316_2_group1_adr[] = {
  88. {
  89. .adr = 0x000230025D131601ull,
  90. .num_endpoints = 1,
  91. .endpoints = &spk_r_endpoint,
  92. .name_prefix = "rt1316-2"
  93. }
  94. };
  95. static const struct snd_soc_acpi_adr_device rt1316_3_group1_adr[] = {
  96. {
  97. .adr = 0x000330025D131601ull,
  98. .num_endpoints = 1,
  99. .endpoints = &spk_r_endpoint,
  100. .name_prefix = "rt1316-2"
  101. }
  102. };
  103. static const struct snd_soc_acpi_adr_device rt1316_0_group2_adr[] = {
  104. {
  105. .adr = 0x000031025D131601ull,
  106. .num_endpoints = 1,
  107. .endpoints = &spk_l_endpoint,
  108. .name_prefix = "rt1316-1"
  109. }
  110. };
  111. static const struct snd_soc_acpi_adr_device rt1316_1_group2_adr[] = {
  112. {
  113. .adr = 0x000130025D131601ull,
  114. .num_endpoints = 1,
  115. .endpoints = &spk_r_endpoint,
  116. .name_prefix = "rt1316-2"
  117. }
  118. };
  119. static const struct snd_soc_acpi_adr_device rt1316_2_single_adr[] = {
  120. {
  121. .adr = 0x000230025D131601ull,
  122. .num_endpoints = 1,
  123. .endpoints = &single_endpoint,
  124. .name_prefix = "rt1316-1"
  125. }
  126. };
  127. static const struct snd_soc_acpi_adr_device rt1316_3_single_adr[] = {
  128. {
  129. .adr = 0x000330025D131601ull,
  130. .num_endpoints = 1,
  131. .endpoints = &single_endpoint,
  132. .name_prefix = "rt1316-1"
  133. }
  134. };
  135. static const struct snd_soc_acpi_adr_device rt714_0_adr[] = {
  136. {
  137. .adr = 0x000030025D071401ull,
  138. .num_endpoints = 1,
  139. .endpoints = &single_endpoint,
  140. .name_prefix = "rt714"
  141. }
  142. };
  143. static const struct snd_soc_acpi_adr_device rt714_2_adr[] = {
  144. {
  145. .adr = 0x000230025D071401ull,
  146. .num_endpoints = 1,
  147. .endpoints = &single_endpoint,
  148. .name_prefix = "rt714"
  149. }
  150. };
  151. static const struct snd_soc_acpi_adr_device rt714_3_adr[] = {
  152. {
  153. .adr = 0x000330025D071401ull,
  154. .num_endpoints = 1,
  155. .endpoints = &single_endpoint,
  156. .name_prefix = "rt714"
  157. }
  158. };
  159. static const struct snd_soc_acpi_link_adr adl_default[] = {
  160. {
  161. .mask = BIT(0),
  162. .num_adr = ARRAY_SIZE(rt711_0_adr),
  163. .adr_d = rt711_0_adr,
  164. },
  165. {
  166. .mask = BIT(1),
  167. .num_adr = ARRAY_SIZE(rt1308_1_group1_adr),
  168. .adr_d = rt1308_1_group1_adr,
  169. },
  170. {
  171. .mask = BIT(2),
  172. .num_adr = ARRAY_SIZE(rt1308_2_group1_adr),
  173. .adr_d = rt1308_2_group1_adr,
  174. },
  175. {
  176. .mask = BIT(3),
  177. .num_adr = ARRAY_SIZE(rt715_3_adr),
  178. .adr_d = rt715_3_adr,
  179. },
  180. {}
  181. };
  182. static const struct snd_soc_acpi_link_adr adl_sdca_default[] = {
  183. {
  184. .mask = BIT(0),
  185. .num_adr = ARRAY_SIZE(rt711_sdca_0_adr),
  186. .adr_d = rt711_sdca_0_adr,
  187. },
  188. {
  189. .mask = BIT(1),
  190. .num_adr = ARRAY_SIZE(rt1316_1_group1_adr),
  191. .adr_d = rt1316_1_group1_adr,
  192. },
  193. {
  194. .mask = BIT(2),
  195. .num_adr = ARRAY_SIZE(rt1316_2_group1_adr),
  196. .adr_d = rt1316_2_group1_adr,
  197. },
  198. {
  199. .mask = BIT(3),
  200. .num_adr = ARRAY_SIZE(rt714_3_adr),
  201. .adr_d = rt714_3_adr,
  202. },
  203. {}
  204. };
  205. static const struct snd_soc_acpi_link_adr adl_sdca_3_in_1[] = {
  206. {
  207. .mask = BIT(0),
  208. .num_adr = ARRAY_SIZE(rt711_sdca_0_adr),
  209. .adr_d = rt711_sdca_0_adr,
  210. },
  211. {
  212. .mask = BIT(1),
  213. .num_adr = ARRAY_SIZE(rt1316_1_group1_adr),
  214. .adr_d = rt1316_1_group1_adr,
  215. },
  216. {
  217. .mask = BIT(2),
  218. .num_adr = ARRAY_SIZE(rt714_2_adr),
  219. .adr_d = rt714_2_adr,
  220. },
  221. {
  222. .mask = BIT(3),
  223. .num_adr = ARRAY_SIZE(rt1316_3_group1_adr),
  224. .adr_d = rt1316_3_group1_adr,
  225. },
  226. {}
  227. };
  228. static const struct snd_soc_acpi_link_adr adl_sdw_rt711_link2_rt1316_link01_rt714_link3[] = {
  229. {
  230. .mask = BIT(2),
  231. .num_adr = ARRAY_SIZE(rt711_sdca_2_adr),
  232. .adr_d = rt711_sdca_2_adr,
  233. },
  234. {
  235. .mask = BIT(0),
  236. .num_adr = ARRAY_SIZE(rt1316_0_group2_adr),
  237. .adr_d = rt1316_0_group2_adr,
  238. },
  239. {
  240. .mask = BIT(1),
  241. .num_adr = ARRAY_SIZE(rt1316_1_group2_adr),
  242. .adr_d = rt1316_1_group2_adr,
  243. },
  244. {
  245. .mask = BIT(3),
  246. .num_adr = ARRAY_SIZE(rt714_3_adr),
  247. .adr_d = rt714_3_adr,
  248. },
  249. {}
  250. };
  251. static const struct snd_soc_acpi_link_adr adl_sdw_rt711_link2_rt1316_link01[] = {
  252. {
  253. .mask = BIT(2),
  254. .num_adr = ARRAY_SIZE(rt711_sdca_2_adr),
  255. .adr_d = rt711_sdca_2_adr,
  256. },
  257. {
  258. .mask = BIT(0),
  259. .num_adr = ARRAY_SIZE(rt1316_0_group2_adr),
  260. .adr_d = rt1316_0_group2_adr,
  261. },
  262. {
  263. .mask = BIT(1),
  264. .num_adr = ARRAY_SIZE(rt1316_1_group2_adr),
  265. .adr_d = rt1316_1_group2_adr,
  266. },
  267. {}
  268. };
  269. static const struct snd_soc_acpi_link_adr adl_sdw_rt1316_link12_rt714_link0[] = {
  270. {
  271. .mask = BIT(1),
  272. .num_adr = ARRAY_SIZE(rt1316_1_group1_adr),
  273. .adr_d = rt1316_1_group1_adr,
  274. },
  275. {
  276. .mask = BIT(2),
  277. .num_adr = ARRAY_SIZE(rt1316_2_group1_adr),
  278. .adr_d = rt1316_2_group1_adr,
  279. },
  280. {
  281. .mask = BIT(0),
  282. .num_adr = ARRAY_SIZE(rt714_0_adr),
  283. .adr_d = rt714_0_adr,
  284. },
  285. {}
  286. };
  287. static const struct snd_soc_acpi_link_adr adl_sdw_rt1316_link2_rt714_link3[] = {
  288. {
  289. .mask = BIT(2),
  290. .num_adr = ARRAY_SIZE(rt1316_2_single_adr),
  291. .adr_d = rt1316_2_single_adr,
  292. },
  293. {
  294. .mask = BIT(3),
  295. .num_adr = ARRAY_SIZE(rt714_3_adr),
  296. .adr_d = rt714_3_adr,
  297. },
  298. {}
  299. };
  300. static const struct snd_soc_acpi_link_adr adl_sdw_rt1316_link2_rt714_link0[] = {
  301. {
  302. .mask = BIT(2),
  303. .num_adr = ARRAY_SIZE(rt1316_2_single_adr),
  304. .adr_d = rt1316_2_single_adr,
  305. },
  306. {
  307. .mask = BIT(0),
  308. .num_adr = ARRAY_SIZE(rt714_0_adr),
  309. .adr_d = rt714_0_adr,
  310. },
  311. {}
  312. };
  313. static const struct snd_soc_acpi_link_adr adl_sdw_rt711_link0_rt1316_link3[] = {
  314. {
  315. .mask = BIT(0),
  316. .num_adr = ARRAY_SIZE(rt711_sdca_0_adr),
  317. .adr_d = rt711_sdca_0_adr,
  318. },
  319. {
  320. .mask = BIT(3),
  321. .num_adr = ARRAY_SIZE(rt1316_3_single_adr),
  322. .adr_d = rt1316_3_single_adr,
  323. },
  324. {}
  325. };
  326. static const struct snd_soc_acpi_link_adr adl_sdw_rt711_link0_rt1316_link2[] = {
  327. {
  328. .mask = BIT(0),
  329. .num_adr = ARRAY_SIZE(rt711_sdca_0_adr),
  330. .adr_d = rt711_sdca_0_adr,
  331. },
  332. {
  333. .mask = BIT(2),
  334. .num_adr = ARRAY_SIZE(rt1316_2_single_adr),
  335. .adr_d = rt1316_2_single_adr,
  336. },
  337. {}
  338. };
  339. static const struct snd_soc_acpi_adr_device mx8373_2_adr[] = {
  340. {
  341. .adr = 0x000223019F837300ull,
  342. .num_endpoints = 1,
  343. .endpoints = &spk_l_endpoint,
  344. .name_prefix = "Left"
  345. },
  346. {
  347. .adr = 0x000227019F837300ull,
  348. .num_endpoints = 1,
  349. .endpoints = &spk_r_endpoint,
  350. .name_prefix = "Right"
  351. }
  352. };
  353. static const struct snd_soc_acpi_adr_device rt5682_0_adr[] = {
  354. {
  355. .adr = 0x000021025D568200ull,
  356. .num_endpoints = 1,
  357. .endpoints = &single_endpoint,
  358. .name_prefix = "rt5682"
  359. }
  360. };
  361. static const struct snd_soc_acpi_link_adr adl_rvp[] = {
  362. {
  363. .mask = BIT(0),
  364. .num_adr = ARRAY_SIZE(rt711_0_adr),
  365. .adr_d = rt711_0_adr,
  366. },
  367. {}
  368. };
  369. static const struct snd_soc_acpi_link_adr adlps_rvp[] = {
  370. {
  371. .mask = BIT(0),
  372. .num_adr = ARRAY_SIZE(rt711_sdca_0_adr),
  373. .adr_d = rt711_sdca_0_adr,
  374. },
  375. {}
  376. };
  377. static const struct snd_soc_acpi_link_adr adl_chromebook_base[] = {
  378. {
  379. .mask = BIT(0),
  380. .num_adr = ARRAY_SIZE(rt5682_0_adr),
  381. .adr_d = rt5682_0_adr,
  382. },
  383. {
  384. .mask = BIT(2),
  385. .num_adr = ARRAY_SIZE(mx8373_2_adr),
  386. .adr_d = mx8373_2_adr,
  387. },
  388. {}
  389. };
  390. static const struct snd_soc_acpi_codecs adl_max98373_amp = {
  391. .num_codecs = 1,
  392. .codecs = {"MX98373"}
  393. };
  394. static const struct snd_soc_acpi_codecs adl_max98357a_amp = {
  395. .num_codecs = 1,
  396. .codecs = {"MX98357A"}
  397. };
  398. static const struct snd_soc_acpi_codecs adl_max98360a_amp = {
  399. .num_codecs = 1,
  400. .codecs = {"MX98360A"}
  401. };
  402. static const struct snd_soc_acpi_codecs adl_rt5682_rt5682s_hp = {
  403. .num_codecs = 2,
  404. .codecs = {"10EC5682", "RTL5682"},
  405. };
  406. static const struct snd_soc_acpi_codecs adl_rt1015p_amp = {
  407. .num_codecs = 1,
  408. .codecs = {"RTL1015"}
  409. };
  410. static const struct snd_soc_acpi_codecs adl_rt1019p_amp = {
  411. .num_codecs = 1,
  412. .codecs = {"RTL1019"}
  413. };
  414. static const struct snd_soc_acpi_codecs adl_max98390_amp = {
  415. .num_codecs = 1,
  416. .codecs = {"MX98390"}
  417. };
  418. static const struct snd_soc_acpi_codecs adl_lt6911_hdmi = {
  419. .num_codecs = 1,
  420. .codecs = {"INTC10B0"}
  421. };
  422. struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = {
  423. {
  424. .comp_ids = &adl_rt5682_rt5682s_hp,
  425. .drv_name = "adl_mx98373_rt5682",
  426. .machine_quirk = snd_soc_acpi_codec_list,
  427. .quirk_data = &adl_max98373_amp,
  428. .sof_tplg_filename = "sof-adl-max98373-rt5682.tplg",
  429. },
  430. {
  431. .comp_ids = &adl_rt5682_rt5682s_hp,
  432. .drv_name = "adl_mx98357_rt5682",
  433. .machine_quirk = snd_soc_acpi_codec_list,
  434. .quirk_data = &adl_max98357a_amp,
  435. .sof_tplg_filename = "sof-adl-max98357a-rt5682.tplg",
  436. },
  437. {
  438. .comp_ids = &adl_rt5682_rt5682s_hp,
  439. .drv_name = "adl_mx98360_rt5682",
  440. .machine_quirk = snd_soc_acpi_codec_list,
  441. .quirk_data = &adl_max98360a_amp,
  442. .sof_tplg_filename = "sof-adl-max98360a-rt5682.tplg",
  443. },
  444. {
  445. .id = "10508825",
  446. .drv_name = "adl_rt1019p_8825",
  447. .machine_quirk = snd_soc_acpi_codec_list,
  448. .quirk_data = &adl_rt1019p_amp,
  449. .sof_tplg_filename = "sof-adl-rt1019-nau8825.tplg",
  450. },
  451. {
  452. .id = "10508825",
  453. .drv_name = "adl_max98373_8825",
  454. .machine_quirk = snd_soc_acpi_codec_list,
  455. .quirk_data = &adl_max98373_amp,
  456. .sof_tplg_filename = "sof-adl-max98373-nau8825.tplg",
  457. },
  458. {
  459. .id = "10508825",
  460. .drv_name = "adl_mx98360a_8825",
  461. .machine_quirk = snd_soc_acpi_codec_list,
  462. .quirk_data = &adl_max98360a_amp,
  463. .sof_tplg_filename = "sof-adl-max98360a-nau8825.tplg",
  464. },
  465. {
  466. .id = "RTL5682",
  467. .drv_name = "adl_rt1019_rt5682s",
  468. .machine_quirk = snd_soc_acpi_codec_list,
  469. .quirk_data = &adl_rt1019p_amp,
  470. .sof_tplg_filename = "sof-adl-rt1019-rt5682.tplg",
  471. },
  472. {
  473. .id = "10508825",
  474. .drv_name = "adl_rt1015p_8825",
  475. .machine_quirk = snd_soc_acpi_codec_list,
  476. .quirk_data = &adl_rt1015p_amp,
  477. .sof_tplg_filename = "sof-adl-rt1015-nau8825.tplg",
  478. },
  479. {
  480. .id = "10508825",
  481. .drv_name = "sof_nau8825",
  482. .sof_tplg_filename = "sof-adl-nau8825.tplg",
  483. },
  484. {
  485. .comp_ids = &adl_rt5682_rt5682s_hp,
  486. .drv_name = "adl_max98390_rt5682",
  487. .machine_quirk = snd_soc_acpi_codec_list,
  488. .quirk_data = &adl_max98390_amp,
  489. .sof_tplg_filename = "sof-adl-max98390-rt5682.tplg",
  490. },
  491. {
  492. .comp_ids = &adl_rt5682_rt5682s_hp,
  493. .drv_name = "adl_rt5682",
  494. .sof_tplg_filename = "sof-adl-rt5682.tplg",
  495. },
  496. {
  497. .id = "10134242",
  498. .drv_name = "adl_mx98360a_cs4242",
  499. .machine_quirk = snd_soc_acpi_codec_list,
  500. .quirk_data = &adl_max98360a_amp,
  501. .sof_tplg_filename = "sof-adl-max98360a-cs42l42.tplg",
  502. },
  503. /* place amp-only boards in the end of table */
  504. {
  505. .id = "CSC3541",
  506. .drv_name = "adl_cs35l41",
  507. .sof_tplg_filename = "sof-adl-cs35l41.tplg",
  508. },
  509. {
  510. .comp_ids = &essx_83x6,
  511. .drv_name = "adl_es83x6_c1_h02",
  512. .machine_quirk = snd_soc_acpi_codec_list,
  513. .quirk_data = &adl_lt6911_hdmi,
  514. .sof_tplg_filename = "sof-adl-es83x6-ssp1-hdmi-ssp02.tplg",
  515. },
  516. {
  517. .comp_ids = &essx_83x6,
  518. .drv_name = "sof-essx8336",
  519. .sof_tplg_filename = "sof-adl-es8336", /* the tplg suffix is added at run time */
  520. .tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER |
  521. SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
  522. SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
  523. },
  524. {},
  525. };
  526. EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_adl_machines);
  527. /* this table is used when there is no I2S codec present */
  528. struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_sdw_machines[] = {
  529. {
  530. .link_mask = 0xF, /* 4 active links required */
  531. .links = adl_default,
  532. .drv_name = "sof_sdw",
  533. .sof_tplg_filename = "sof-adl-rt711-l0-rt1308-l12-rt715-l3.tplg",
  534. },
  535. {
  536. .link_mask = 0xF, /* 4 active links required */
  537. .links = adl_sdca_default,
  538. .drv_name = "sof_sdw",
  539. .sof_tplg_filename = "sof-adl-rt711-l0-rt1316-l12-rt714-l3.tplg",
  540. },
  541. {
  542. .link_mask = 0xF, /* 4 active links required */
  543. .links = adl_sdca_3_in_1,
  544. .drv_name = "sof_sdw",
  545. .sof_tplg_filename = "sof-adl-rt711-l0-rt1316-l13-rt714-l2.tplg",
  546. },
  547. {
  548. .link_mask = 0xF, /* 4 active links required */
  549. .links = adl_sdw_rt711_link2_rt1316_link01_rt714_link3,
  550. .drv_name = "sof_sdw",
  551. .sof_tplg_filename = "sof-adl-rt711-l2-rt1316-l01-rt714-l3.tplg",
  552. },
  553. {
  554. .link_mask = 0x7, /* rt1316 on link0 and link1 & rt711 on link2*/
  555. .links = adl_sdw_rt711_link2_rt1316_link01,
  556. .drv_name = "sof_sdw",
  557. .sof_tplg_filename = "sof-adl-rt711-l2-rt1316-l01.tplg",
  558. },
  559. {
  560. .link_mask = 0xC, /* rt1316 on link2 & rt714 on link3 */
  561. .links = adl_sdw_rt1316_link2_rt714_link3,
  562. .drv_name = "sof_sdw",
  563. .sof_tplg_filename = "sof-adl-rt1316-l2-mono-rt714-l3.tplg",
  564. },
  565. {
  566. .link_mask = 0x7, /* rt714 on link0 & two rt1316s on link1 and link2 */
  567. .links = adl_sdw_rt1316_link12_rt714_link0,
  568. .drv_name = "sof_sdw",
  569. .sof_tplg_filename = "sof-adl-rt1316-l12-rt714-l0.tplg",
  570. },
  571. {
  572. .link_mask = 0x5, /* 2 active links required */
  573. .links = adl_sdw_rt1316_link2_rt714_link0,
  574. .drv_name = "sof_sdw",
  575. .sof_tplg_filename = "sof-adl-rt1316-l2-mono-rt714-l0.tplg",
  576. },
  577. {
  578. .link_mask = 0x9, /* 2 active links required */
  579. .links = adl_sdw_rt711_link0_rt1316_link3,
  580. .drv_name = "sof_sdw",
  581. .sof_tplg_filename = "sof-adl-rt711-l0-rt1316-l3.tplg",
  582. },
  583. {
  584. .link_mask = 0x5, /* 2 active links required */
  585. .links = adl_sdw_rt711_link0_rt1316_link2,
  586. .drv_name = "sof_sdw",
  587. .sof_tplg_filename = "sof-adl-rt711-l0-rt1316-l2.tplg",
  588. },
  589. {
  590. .link_mask = 0x1, /* link0 required */
  591. .links = adl_rvp,
  592. .drv_name = "sof_sdw",
  593. .sof_tplg_filename = "sof-adl-rt711.tplg",
  594. },
  595. {
  596. .link_mask = 0x1, /* link0 required */
  597. .links = adlps_rvp,
  598. .drv_name = "sof_sdw",
  599. .sof_tplg_filename = "sof-adl-rt711.tplg",
  600. },
  601. {
  602. .link_mask = 0x5, /* rt5682 on link0 & 2xmax98373 on link 2 */
  603. .links = adl_chromebook_base,
  604. .drv_name = "sof_sdw",
  605. .sof_tplg_filename = "sof-adl-sdw-max98373-rt5682.tplg",
  606. },
  607. {},
  608. };
  609. EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_adl_sdw_machines);