]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: soc-acpi-intel-ptl-match: use aggregated endpoint in ptl_rt722_l0_rt1320_l23
authorBard Liao <yung-chuan.liao@linux.intel.com>
Mon, 19 Jan 2026 09:17:49 +0000 (17:17 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 19 Jan 2026 14:42:08 +0000 (14:42 +0000)
The rt722 amp and rt1320 amps are aggregated in this case.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://patch.msgid.link/20260119091749.1752088-3-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 060955825fe00adc769886e7e78d8eb2956afcba..9e3c459d22e677a12bf505d89f14a159d34a6a2c 100644 (file)
@@ -383,6 +383,15 @@ static const struct snd_soc_acpi_link_adr ptl_rt721_l3[] = {
        {},
 };
 
+static const struct snd_soc_acpi_adr_device rt722_0_agg_adr[] = {
+       {
+               .adr = 0x000030025d072201ull,
+               .num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints),
+               .endpoints = jack_amp_g1_dmic_endpoints,
+               .name_prefix = "rt722"
+       }
+};
+
 static const struct snd_soc_acpi_adr_device rt722_0_single_adr[] = {
        {
                .adr = 0x000030025d072201ull,
@@ -536,8 +545,8 @@ 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,
+               .num_adr = ARRAY_SIZE(rt722_0_agg_adr),
+               .adr_d = rt722_0_agg_adr,
        },
        {
                .mask = BIT(2),