From 2fe94311658f2489942ba11abedea2bc3e42e9d1 Mon Sep 17 00:00:00 2001 From: Mac Chiang Date: Fri, 3 Oct 2025 18:11:59 +0800 Subject: [PATCH] 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 --- .../intel/common/soc-acpi-intel-ptl-match.c | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/sound/soc/intel/common/soc-acpi-intel-ptl-match.c b/sound/soc/intel/common/soc-acpi-intel-ptl-match.c index 99ff1771248bb5..d27e414463b785 100644 --- a/sound/soc/intel/common/soc-acpi-intel-ptl-match.c +++ b/sound/soc/intel/common/soc-acpi-intel-ptl-match.c @@ -350,6 +350,15 @@ static const struct snd_soc_acpi_adr_device rt721_3_single_adr[] = { } }; +static const struct snd_soc_acpi_adr_device rt721_3_group1_adr[] = { + { + .adr = 0x000330025d072101ull, + .num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints), + .endpoints = jack_amp_g1_dmic_endpoints, + .name_prefix = "rt721" + } +}; + static const struct snd_soc_acpi_link_adr ptl_rt721_l3[] = { { .mask = BIT(3), @@ -514,6 +523,20 @@ static const struct snd_soc_acpi_link_adr ptl_rt722_l0_rt1320_l23[] = { {} }; +static const struct snd_soc_acpi_link_adr ptl_sdw_rt721_l3_rt1320_l3[] = { + { + .mask = BIT(3), + .num_adr = ARRAY_SIZE(rt721_3_group1_adr), + .adr_d = rt721_3_group1_adr, + }, + { + .mask = BIT(3), + .num_adr = ARRAY_SIZE(rt1320_3_group1_adr), + .adr_d = rt1320_3_group1_adr, + }, + {} +}; + static const struct snd_soc_acpi_link_adr ptl_rvp[] = { { .mask = BIT(0), @@ -710,6 +733,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = { .sof_tplg_filename = "sof-ptl-rt712-l3-rt1320-l3.tplg", .get_function_tplg_files = sof_sdw_get_tplg_files, }, + { + .link_mask = BIT(3), + .links = ptl_sdw_rt721_l3_rt1320_l3, + .drv_name = "sof_sdw", + .sof_tplg_filename = "sof-ptl-rt721-l3-rt1320-l3.tplg", + .get_function_tplg_files = sof_sdw_get_tplg_files, + }, { .link_mask = BIT(3), .links = ptl_rt721_l3,