From 8a77aea31468fd961229c233db4127a9d1d9c31a Mon Sep 17 00:00:00 2001 From: Bard Liao Date: Thu, 31 Oct 2024 21:24:52 +0800 Subject: [PATCH] ASoC: Intel: soc-acpi-intel-lnl-match: rename rt722_endpoints Rt712-vb has exactly the same endpoints as rt722. Rename rt722_endpoints and it will be used by rt712-vb in the follow up commit. Signed-off-by: Bard Liao --- sound/soc/intel/common/soc-acpi-intel-lnl-match.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sound/soc/intel/common/soc-acpi-intel-lnl-match.c b/sound/soc/intel/common/soc-acpi-intel-lnl-match.c index 094ed4b27cb068..87eb05b2a9b319 100644 --- a/sound/soc/intel/common/soc-acpi-intel-lnl-match.c +++ b/sound/soc/intel/common/soc-acpi-intel-lnl-match.c @@ -66,22 +66,25 @@ static const struct snd_soc_acpi_endpoint rt712_endpoints[] = { }; /* - * RT722 is a multi-function codec, three endpoints are created for + * Endpoints for Realtek multi-function codecs, three endpoints are created for * its headset, amp and dmic functions. */ -static const struct snd_soc_acpi_endpoint rt722_endpoints[] = { +static const struct snd_soc_acpi_endpoint rt_sdca_mf_endpoints[] = { + /* Jack Endpoint */ { .num = 0, .aggregated = 0, .group_position = 0, .group_id = 0, }, + /* Amp Endpoint */ { .num = 1, .aggregated = 0, .group_position = 0, .group_id = 0, }, + /* DMIC Endpoint */ { .num = 2, .aggregated = 0, @@ -201,8 +204,8 @@ static const struct snd_soc_acpi_adr_device rt1712_3_single_adr[] = { static const struct snd_soc_acpi_adr_device rt722_0_single_adr[] = { { .adr = 0x000030025d072201ull, - .num_endpoints = ARRAY_SIZE(rt722_endpoints), - .endpoints = rt722_endpoints, + .num_endpoints = ARRAY_SIZE(rt_sdca_mf_endpoints), + .endpoints = rt_sdca_mf_endpoints, .name_prefix = "rt722" } };