File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,49 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_nvl_machines[] = {
1515};
1616EXPORT_SYMBOL_GPL (snd_soc_acpi_intel_nvl_machines );
1717
18+ /*
19+ * Multi-function codecs with three endpoints created for
20+ * headset, amp and dmic functions.
21+ */
22+ static const struct snd_soc_acpi_endpoint rt_mf_endpoints [] = {
23+ {
24+ .num = 0 ,
25+ .aggregated = 0 ,
26+ .group_position = 0 ,
27+ .group_id = 0 ,
28+ },
29+ {
30+ .num = 1 ,
31+ .aggregated = 0 ,
32+ .group_position = 0 ,
33+ .group_id = 0 ,
34+ },
35+ {
36+ .num = 2 ,
37+ .aggregated = 0 ,
38+ .group_position = 0 ,
39+ .group_id = 0 ,
40+ },
41+ };
42+
43+ static const struct snd_soc_acpi_adr_device rt722_3_single_adr [] = {
44+ {
45+ .adr = 0x000330025d072201ull ,
46+ .num_endpoints = ARRAY_SIZE (rt_mf_endpoints ),
47+ .endpoints = rt_mf_endpoints ,
48+ .name_prefix = "rt722"
49+ }
50+ };
51+
52+ static const struct snd_soc_acpi_link_adr nvl_rt722_l3 [] = {
53+ {
54+ .mask = BIT (3 ),
55+ .num_adr = ARRAY_SIZE (rt722_3_single_adr ),
56+ .adr_d = rt722_3_single_adr ,
57+ },
58+ {}
59+ };
60+
1861/* this table is used when there is no I2S codec present */
1962struct snd_soc_acpi_mach snd_soc_acpi_intel_nvl_sdw_machines [] = {
2063 /* mockup tests need to be first */
@@ -36,6 +79,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_nvl_sdw_machines[] = {
3679 .drv_name = "sof_sdw" ,
3780 .sof_tplg_filename = "sof-nvl-rt715-rt711-rt1308-mono.tplg" ,
3881 },
82+ {
83+ .link_mask = BIT (3 ),
84+ .links = nvl_rt722_l3 ,
85+ .drv_name = "sof_sdw" ,
86+ .sof_tplg_filename = "sof-nvl-rt722.tplg" ,
87+ },
3988 {},
4089};
4190EXPORT_SYMBOL_GPL (snd_soc_acpi_intel_nvl_sdw_machines );
You can’t perform that action at this time.
0 commit comments