Skip to content

Commit ac5b4a2

Browse files
naveen-manoharbroonie
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 <[email protected]> Reviewed-by: Liam Girdwood <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 89be3c1 commit ac5b4a2

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

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

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

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

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

429+
static const struct snd_soc_acpi_link_adr ptl_cs42l43_l3[] = {
430+
{
431+
.mask = BIT(3),
432+
.num_adr = ARRAY_SIZE(cs42l43_3_adr),
433+
.adr_d = cs42l43_3_adr,
434+
}
435+
};
436+
393437
static const struct snd_soc_acpi_link_adr ptl_rt722_only[] = {
394438
{
395439
.mask = BIT(0),
@@ -531,6 +575,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
531575
.drv_name = "sof_sdw",
532576
.sof_tplg_filename = "sof-ptl-rt711.tplg",
533577
},
578+
{
579+
.link_mask = BIT(3),
580+
.links = ptl_cs42l43_l3,
581+
.drv_name = "sof_sdw",
582+
.sof_tplg_filename = "sof-ptl-cs42l43-l3.tplg",
583+
},
534584
{
535585
.link_mask = BIT(3),
536586
.links = ptl_rt721_l3,

0 commit comments

Comments
 (0)