Skip to content

Commit 23d3485

Browse files
macchianbardliao
authored andcommitted
ASoC: Intel: soc-acpi-intel-ptl-match: Add support for rt722_l0_rt1320_l23
This patch adds support for the RT722 codec on SoundWire link 0, and RT1320 left and right amplifiers on links 2 and 3, respectively. Signed-off-by: Mac Chiang <mac.chiang@intel.com>
1 parent 888f922 commit 23d3485

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,15 @@ static const struct snd_soc_acpi_adr_device rt1320_2_group2_adr[] = {
422422
}
423423
};
424424

425+
static const struct snd_soc_acpi_adr_device rt1320_2_group2_l_adr[] = {
426+
{
427+
.adr = 0x000230025D132001ull,
428+
.num_endpoints = 1,
429+
.endpoints = &spk_l_endpoint,
430+
.name_prefix = "rt1320-1"
431+
}
432+
};
433+
425434
static const struct snd_soc_acpi_adr_device rt1320_3_group2_adr[] = {
426435
{
427436
.adr = 0x000330025D132001ull,
@@ -486,6 +495,25 @@ static const struct snd_soc_acpi_link_adr ptl_rt722_l3[] = {
486495
{}
487496
};
488497

498+
static const struct snd_soc_acpi_link_adr ptl_rt722_l0_rt1320_l23[] = {
499+
{
500+
.mask = BIT(0),
501+
.num_adr = ARRAY_SIZE(rt722_0_single_adr),
502+
.adr_d = rt722_0_single_adr,
503+
},
504+
{
505+
.mask = BIT(2),
506+
.num_adr = ARRAY_SIZE(rt1320_2_group2_l_adr),
507+
.adr_d = rt1320_2_group2_l_adr,
508+
},
509+
{
510+
.mask = BIT(3),
511+
.num_adr = ARRAY_SIZE(rt1320_3_group2_adr),
512+
.adr_d = rt1320_3_group2_adr,
513+
},
514+
{}
515+
};
516+
489517
static const struct snd_soc_acpi_link_adr ptl_rvp[] = {
490518
{
491519
.mask = BIT(0),
@@ -624,6 +652,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
624652
.drv_name = "sof_sdw",
625653
.sof_tplg_filename = "sof-ptl-cs42l43-l2-cs35l56x6-l13.tplg",
626654
},
655+
{
656+
.link_mask = BIT(0) | BIT(2) | BIT(3),
657+
.links = ptl_rt722_l0_rt1320_l23,
658+
.drv_name = "sof_sdw",
659+
.sof_tplg_filename = "sof-ptl-rt722-l0-rt1320-l23.tplg",
660+
.get_function_tplg_files = sof_sdw_get_tplg_files,
661+
},
627662
{
628663
.link_mask = BIT(1) | BIT(2),
629664
.links = ptl_sdw_rt712_vb_l2_rt1320_l1,

0 commit comments

Comments
 (0)