]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: Intel: soc-acpi-intel-ptl-match: Add support for rt722_l0_rt1320_l23
authorMac Chiang <mac.chiang@intel.com>
Tue, 11 Nov 2025 12:37:32 +0000 (20:37 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 11 Nov 2025 12:41:10 +0000 (12:41 +0000)
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>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20251111123737.246626-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/common/soc-acpi-intel-ptl-match.c

index 4853f4f31786f82c8ff22c18d095dc4000b8329d..99ff1771248bb522534fd3ebbf0512d602f33c9b 100644 (file)
@@ -422,6 +422,15 @@ static const struct snd_soc_acpi_adr_device rt1320_2_group2_adr[] = {
        }
 };
 
+static const struct snd_soc_acpi_adr_device rt1320_2_group2_l_adr[] = {
+       {
+               .adr = 0x000230025D132001ull,
+               .num_endpoints = 1,
+               .endpoints = &spk_l_endpoint,
+               .name_prefix = "rt1320-1"
+       }
+};
+
 static const struct snd_soc_acpi_adr_device rt1320_3_group2_adr[] = {
        {
                .adr = 0x000330025D132001ull,
@@ -486,6 +495,25 @@ static const struct snd_soc_acpi_link_adr ptl_rt722_l3[] = {
        {}
 };
 
+static const struct snd_soc_acpi_link_adr ptl_rt722_l0_rt1320_l23[] = {
+       {
+               .mask = BIT(0),
+               .num_adr = ARRAY_SIZE(rt722_0_single_adr),
+               .adr_d = rt722_0_single_adr,
+       },
+       {
+               .mask = BIT(2),
+               .num_adr = ARRAY_SIZE(rt1320_2_group2_l_adr),
+               .adr_d = rt1320_2_group2_l_adr,
+       },
+       {
+               .mask = BIT(3),
+               .num_adr = ARRAY_SIZE(rt1320_3_group2_adr),
+               .adr_d = rt1320_3_group2_adr,
+       },
+       {}
+};
+
 static const struct snd_soc_acpi_link_adr ptl_rvp[] = {
        {
                .mask = BIT(0),
@@ -624,6 +652,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
                .drv_name = "sof_sdw",
                .sof_tplg_filename = "sof-ptl-cs42l43-l2-cs35l56x6-l13.tplg",
        },
+       {
+               .link_mask = BIT(0) | BIT(2) | BIT(3),
+               .links = ptl_rt722_l0_rt1320_l23,
+               .drv_name = "sof_sdw",
+               .sof_tplg_filename = "sof-ptl-rt722-l0-rt1320-l23.tplg",
+               .get_function_tplg_files = sof_sdw_get_tplg_files,
+       },
        {
                .link_mask = BIT(1) | BIT(2),
                .links = ptl_sdw_rt712_vb_l2_rt1320_l1,