Skip to content

Commit dd3bd9d

Browse files
bardliaobroonie
authored andcommitted
ASoC: Intel: soc-acpi-intel-lnl-match: add cs42l43 only support
cs42l43 is on link 0. No amp in this configuration, will use cs42l43 speaker or bridge. Signed-off-by: Bard Liao <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f77ae7f commit dd3bd9d

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

sound/soc/intel/common/soc-acpi-intel-lnl-match.c

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,42 @@ static const struct snd_soc_acpi_endpoint rt722_endpoints[] = {
7676
},
7777
};
7878

79+
static const struct snd_soc_acpi_endpoint cs42l43_endpoints[] = {
80+
{ /* Jack Playback Endpoint */
81+
.num = 0,
82+
.aggregated = 0,
83+
.group_position = 0,
84+
.group_id = 0,
85+
},
86+
{ /* DMIC Capture Endpoint */
87+
.num = 1,
88+
.aggregated = 0,
89+
.group_position = 0,
90+
.group_id = 0,
91+
},
92+
{ /* Jack Capture Endpoint */
93+
.num = 2,
94+
.aggregated = 0,
95+
.group_position = 0,
96+
.group_id = 0,
97+
},
98+
{ /* Speaker Playback Endpoint */
99+
.num = 3,
100+
.aggregated = 0,
101+
.group_position = 0,
102+
.group_id = 0,
103+
},
104+
};
105+
106+
static const struct snd_soc_acpi_adr_device cs42l43_0_adr[] = {
107+
{
108+
.adr = 0x00003001FA424301ull,
109+
.num_endpoints = ARRAY_SIZE(cs42l43_endpoints),
110+
.endpoints = cs42l43_endpoints,
111+
.name_prefix = "cs42l43"
112+
}
113+
};
114+
79115
static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = {
80116
{
81117
.adr = 0x000030025D071101ull,
@@ -166,6 +202,14 @@ static const struct snd_soc_acpi_adr_device rt714_1_adr[] = {
166202
}
167203
};
168204

205+
static const struct snd_soc_acpi_link_adr lnl_cs42l43_l0[] = {
206+
{
207+
.mask = BIT(0),
208+
.num_adr = ARRAY_SIZE(cs42l43_0_adr),
209+
.adr_d = cs42l43_0_adr,
210+
},
211+
};
212+
169213
static const struct snd_soc_acpi_link_adr lnl_rvp[] = {
170214
{
171215
.mask = BIT(0),
@@ -268,6 +312,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
268312
.drv_name = "sof_sdw",
269313
.sof_tplg_filename = "sof-lnl-rt711-l0-rt1316-l23-rt714-l1.tplg",
270314
},
315+
{
316+
.link_mask = BIT(0),
317+
.links = lnl_cs42l43_l0,
318+
.drv_name = "sof_sdw",
319+
.sof_tplg_filename = "sof-lnl-cs42l43-l0.tplg",
320+
},
271321
{
272322
.link_mask = BIT(0),
273323
.links = lnl_rvp,

0 commit comments

Comments
 (0)