Skip to content

Commit 2fe9431

Browse files
macchianMac Chiang
authored andcommitted
ASoC: Intel: common: add rt721_l3_rt1320_l3 support
This patch adds multi-lane support for the RT721 multi-function codec and the RT1320 amplifier when sharing SoundWire link 3. Signed-off-by: Mac Chiang <[email protected]>
1 parent 31869e9 commit 2fe9431

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,15 @@ static const struct snd_soc_acpi_adr_device rt721_3_single_adr[] = {
350350
}
351351
};
352352

353+
static const struct snd_soc_acpi_adr_device rt721_3_group1_adr[] = {
354+
{
355+
.adr = 0x000330025d072101ull,
356+
.num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints),
357+
.endpoints = jack_amp_g1_dmic_endpoints,
358+
.name_prefix = "rt721"
359+
}
360+
};
361+
353362
static const struct snd_soc_acpi_link_adr ptl_rt721_l3[] = {
354363
{
355364
.mask = BIT(3),
@@ -514,6 +523,20 @@ static const struct snd_soc_acpi_link_adr ptl_rt722_l0_rt1320_l23[] = {
514523
{}
515524
};
516525

526+
static const struct snd_soc_acpi_link_adr ptl_sdw_rt721_l3_rt1320_l3[] = {
527+
{
528+
.mask = BIT(3),
529+
.num_adr = ARRAY_SIZE(rt721_3_group1_adr),
530+
.adr_d = rt721_3_group1_adr,
531+
},
532+
{
533+
.mask = BIT(3),
534+
.num_adr = ARRAY_SIZE(rt1320_3_group1_adr),
535+
.adr_d = rt1320_3_group1_adr,
536+
},
537+
{}
538+
};
539+
517540
static const struct snd_soc_acpi_link_adr ptl_rvp[] = {
518541
{
519542
.mask = BIT(0),
@@ -710,6 +733,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
710733
.sof_tplg_filename = "sof-ptl-rt712-l3-rt1320-l3.tplg",
711734
.get_function_tplg_files = sof_sdw_get_tplg_files,
712735
},
736+
{
737+
.link_mask = BIT(3),
738+
.links = ptl_sdw_rt721_l3_rt1320_l3,
739+
.drv_name = "sof_sdw",
740+
.sof_tplg_filename = "sof-ptl-rt721-l3-rt1320-l3.tplg",
741+
.get_function_tplg_files = sof_sdw_get_tplg_files,
742+
},
713743
{
714744
.link_mask = BIT(3),
715745
.links = ptl_rt721_l3,

0 commit comments

Comments
 (0)