Skip to content
/ linux Public

Commit d5262b2

Browse files
bardliaoSasha Levin
authored andcommitted
ASoC: soc-acpi-intel-arl-match: change rt722 amp endpoint to aggregated
[ Upstream commit 08c0989 ] rt722 is aggregated with rt1320 amp in arl_rt722_l0_rt1320_l2 and it is the only audio configuration in the ARL platform. Set .aggregated = 1 to represent the fact and avoid unexpected issue. 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-2-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent cfe928c commit d5262b2

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

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

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,22 @@ static const struct snd_soc_acpi_endpoint spk_3_endpoint = {
4545
.group_id = 1,
4646
};
4747

48-
/*
49-
* RT722 is a multi-function codec, three endpoints are created for
50-
* its headset, amp and dmic functions.
51-
*/
52-
static const struct snd_soc_acpi_endpoint rt722_endpoints[] = {
48+
static const struct snd_soc_acpi_endpoint jack_amp_g1_dmic_endpoints[] = {
49+
/* Jack Endpoint */
5350
{
5451
.num = 0,
5552
.aggregated = 0,
5653
.group_position = 0,
5754
.group_id = 0,
5855
},
56+
/* Amp Endpoint, work as spk_l_endpoint */
5957
{
6058
.num = 1,
61-
.aggregated = 0,
59+
.aggregated = 1,
6260
.group_position = 0,
63-
.group_id = 0,
61+
.group_id = 1,
6462
},
63+
/* DMIC Endpoint */
6564
{
6665
.num = 2,
6766
.aggregated = 0,
@@ -229,11 +228,11 @@ static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = {
229228
}
230229
};
231230

232-
static const struct snd_soc_acpi_adr_device rt722_0_single_adr[] = {
231+
static const struct snd_soc_acpi_adr_device rt722_0_agg_adr[] = {
233232
{
234233
.adr = 0x000030025D072201ull,
235-
.num_endpoints = ARRAY_SIZE(rt722_endpoints),
236-
.endpoints = rt722_endpoints,
234+
.num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints),
235+
.endpoints = jack_amp_g1_dmic_endpoints,
237236
.name_prefix = "rt722"
238237
}
239238
};
@@ -394,8 +393,8 @@ static const struct snd_soc_acpi_link_adr arl_rt711_l0_rt1316_l3[] = {
394393
static const struct snd_soc_acpi_link_adr arl_rt722_l0_rt1320_l2[] = {
395394
{
396395
.mask = BIT(0),
397-
.num_adr = ARRAY_SIZE(rt722_0_single_adr),
398-
.adr_d = rt722_0_single_adr,
396+
.num_adr = ARRAY_SIZE(rt722_0_agg_adr),
397+
.adr_d = rt722_0_agg_adr,
399398
},
400399
{
401400
.mask = BIT(2),

0 commit comments

Comments
 (0)