Skip to content

Commit 669508b

Browse files
naveen-manoharlgirdwood
authored andcommitted
ASoC: Intel: soc-acpi-intel-ptl-match: Add cs42l43 support
Patch adds driver data & match table for cs42l43 multi-function codec on PTL-RVP at sdw link3. Signed-off-by: Naveen Manohar <naveen.m@intel.com>
1 parent a1ccff5 commit 669508b

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,33 @@ static const struct snd_soc_acpi_endpoint cs42l43_amp_spkagg_endpoints[] = {
186186
},
187187
};
188188

189+
static const struct snd_soc_acpi_endpoint cs42l43_endpoints[] = {
190+
{ /* Jack Playback Endpoint */
191+
.num = 0,
192+
.aggregated = 0,
193+
.group_position = 0,
194+
.group_id = 0,
195+
},
196+
{ /* DMIC Capture Endpoint */
197+
.num = 1,
198+
.aggregated = 0,
199+
.group_position = 0,
200+
.group_id = 0,
201+
},
202+
{ /* Jack Capture Endpoint */
203+
.num = 2,
204+
.aggregated = 0,
205+
.group_position = 0,
206+
.group_id = 0,
207+
},
208+
{ /* Speaker Playback Endpoint */
209+
.num = 3,
210+
.aggregated = 0,
211+
.group_position = 0,
212+
.group_id = 0,
213+
},
214+
};
215+
189216
static const struct snd_soc_acpi_adr_device cs42l43_2_adr[] = {
190217
{
191218
.adr = 0x00023001fa424301ull,
@@ -237,6 +264,15 @@ static const struct snd_soc_acpi_adr_device cs35l56_3_3amp_adr[] = {
237264
}
238265
};
239266

267+
static const struct snd_soc_acpi_adr_device cs42l43_3_adr[] = {
268+
{
269+
.adr = 0x00033001FA424301ull,
270+
.num_endpoints = ARRAY_SIZE(cs42l43_endpoints),
271+
.endpoints = cs42l43_endpoints,
272+
.name_prefix = "cs42l43"
273+
}
274+
};
275+
240276
static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = {
241277
{
242278
.adr = 0x000030025D071101ull,
@@ -391,6 +427,14 @@ static const struct snd_soc_acpi_link_adr ptl_cs42l43_l2_cs35l56x6_l13[] = {
391427
{}
392428
};
393429

430+
static const struct snd_soc_acpi_link_adr ptl_cs42l43_l3[] = {
431+
{
432+
.mask = BIT(3),
433+
.num_adr = ARRAY_SIZE(cs42l43_3_adr),
434+
.adr_d = cs42l43_3_adr,
435+
}
436+
};
437+
394438
static const struct snd_soc_acpi_link_adr ptl_rt722_only[] = {
395439
{
396440
.mask = BIT(0),
@@ -532,6 +576,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
532576
.drv_name = "sof_sdw",
533577
.sof_tplg_filename = "sof-ptl-rt711.tplg",
534578
},
579+
{
580+
.link_mask = BIT(3),
581+
.links = ptl_cs42l43_l3,
582+
.drv_name = "sof_sdw",
583+
.sof_tplg_filename = "sof-ptl-cs42l43-l3.tplg",
584+
.get_function_tplg_files = sof_sdw_get_tplg_files,
585+
},
535586
{
536587
.link_mask = BIT(3),
537588
.links = ptl_rt721_l3,

0 commit comments

Comments
 (0)