Skip to content

Commit

Permalink
ASoC: Intel: soc-acpi-intel-lnl-match: rename rt722_endpoints
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bardliao committed Nov 1, 2024
1 parent 346a4c9 commit 8a77aea
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions sound/soc/intel/common/soc-acpi-intel-lnl-match.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"
}
};
Expand Down

0 comments on commit 8a77aea

Please sign in to comment.