From: <npoojith@amd.com>
To: <broonie@kernel.org>
Cc: <alsa-devel@alsa-project.org>, <lgirdwood@gmail.com>,
<perex@perex.cz>, <tiwai@suse.com>,
<pierre-louis.bossart@linux.dev>,
<yung-chuan.liao@linux.intel.com>, <Basavaraj.Hiregoudar@amd.com>,
<Sunil-kumar.Dommati@amd.com>, <venkataprasad.potturu@amd.com>,
<Syed.SabaKareem@amd.com>, <Mario.Limonciello@amd.com>,
<Richard.Gong@amd.com>, <Vijendar.Mukunda@amd.com>,
<linux-sound@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Poojitha N <Poojitha.N@amd.com>
Subject: [PATCH] ASoC: amd: acp: add RT766 SoundWire machine entries for ACP7.F
Date: Mon, 30 Nov 2026 20:49:42 +0530 [thread overview]
Message-ID: <20261130152104.3803413-1-npoojith@amd.com> (raw)
From: Poojitha N <Poojitha.N@amd.com>
Add RT766 SDCA codec support to the ACP7.F SoundWire machine table.
The codec sits on link 0 and exposes jack, amp and DMIC endpoints.
Add adr_device and link_adr descriptors for the two supported RT766
revisions, which differ only in the version field of the SoundWire
device address:
rt766_VA0_l0 -> 0x000030025d076601 (version 3)
rt766_VA1_l0 -> 0x000040025d076601 (version 4)
Select SND_SOC_RT766_SDCA_SDW from the AMD SOF SoundWire machine
driver option when SND_SOC_SDCA_CLASS is enabled, since the codec
driver depends on it and a plain select would not satisfy that.
Signed-off-by: Poojitha N <Poojitha.N@amd.com>
---
sound/soc/amd/acp/Kconfig | 1 +
sound/soc/amd/acp/amd-acp7x-acpi-match.c | 52 ++++++++++++++++++++++++
2 files changed, 53 insertions(+)
diff --git a/sound/soc/amd/acp/Kconfig b/sound/soc/amd/acp/Kconfig
index 1b492a9ab582..23ce610eabce 100644
--- a/sound/soc/amd/acp/Kconfig
+++ b/sound/soc/amd/acp/Kconfig
@@ -158,6 +158,7 @@ config SND_SOC_AMD_SOF_SDW_MACH
select SND_SOC_RT715_SDW
select SND_SOC_RT715_SDCA_SDW
select SND_SOC_RT722_SDCA_SDW
+ select SND_SOC_RT766_SDCA_SDW if SND_SOC_SDCA_CLASS
help
This option enables SOF sound card support for SoundWire enabled
AMD platforms along with ACP PDM controller.
diff --git a/sound/soc/amd/acp/amd-acp7x-acpi-match.c b/sound/soc/amd/acp/amd-acp7x-acpi-match.c
index b71060c9ecb0..a71f8a792996 100644
--- a/sound/soc/amd/acp/amd-acp7x-acpi-match.c
+++ b/sound/soc/amd/acp/amd-acp7x-acpi-match.c
@@ -131,6 +131,42 @@ static const struct snd_soc_acpi_link_adr acp7x_rt722_only[] = {
{}
};
+static const struct snd_soc_acpi_adr_device rt766_VA0_l0[] = {
+ {
+ .adr = 0x000030025d076601ull,
+ .num_endpoints = ARRAY_SIZE(jack_amp_dmic_endpoints),
+ .endpoints = jack_amp_dmic_endpoints,
+ .name_prefix = "rt766"
+ }
+};
+
+static const struct snd_soc_acpi_link_adr acp7x_rt766_VA0_l0[] = {
+ {
+ .mask = BIT(0),
+ .num_adr = ARRAY_SIZE(rt766_VA0_l0),
+ .adr_d = rt766_VA0_l0,
+ },
+ {}
+};
+
+static const struct snd_soc_acpi_adr_device rt766_VA1_l0[] = {
+ {
+ .adr = 0x000040025d076601ull,
+ .num_endpoints = ARRAY_SIZE(jack_amp_dmic_endpoints),
+ .endpoints = jack_amp_dmic_endpoints,
+ .name_prefix = "rt766"
+ }
+};
+
+static const struct snd_soc_acpi_link_adr acp7x_rt766_VA1_l0[] = {
+ {
+ .mask = BIT(0),
+ .num_adr = ARRAY_SIZE(rt766_VA1_l0),
+ .adr_d = rt766_VA1_l0,
+ },
+ {}
+};
+
static const struct snd_soc_acpi_adr_device rt1320_l1_single_adr[] = {
{
.adr = 0x000130025d132001ull,
@@ -553,6 +589,22 @@ struct snd_soc_acpi_mach snd_soc_acpi_amd_acp7f_sof_sdw_machines[] = {
.fw_filename = "sof-acp7f.ri",
.get_function_tplg_files = amd_sof_sdw_get_tplg_files,
},
+ {
+ .link_mask = BIT(0),
+ .links = acp7x_rt766_VA0_l0,
+ .drv_name = "amd_sof_sdw",
+ .sof_tplg_filename = "sof-acp7f-rt766-l0.tplg",
+ .fw_filename = "sof-acp7f.ri",
+ .get_function_tplg_files = amd_sof_sdw_get_tplg_files,
+ },
+ {
+ .link_mask = BIT(0),
+ .links = acp7x_rt766_VA1_l0,
+ .drv_name = "amd_sof_sdw",
+ .sof_tplg_filename = "sof-acp7f-rt766-l0.tplg",
+ .fw_filename = "sof-acp7f.ri",
+ .get_function_tplg_files = amd_sof_sdw_get_tplg_files,
+ },
{
.link_mask = BIT(0) | BIT(1),
.links = acp7x_cs42l43_l0u0_cs35l56x4_l1u3210,
--
2.53.0
next reply other threads:[~2026-11-30 15:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 15:19 npoojith [this message]
2026-11-30 15:33 ` Mario Limonciello
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130152104.3803413-1-npoojith@amd.com \
--to=npoojith@amd.com \
--cc=Basavaraj.Hiregoudar@amd.com \
--cc=Mario.Limonciello@amd.com \
--cc=Poojitha.N@amd.com \
--cc=Richard.Gong@amd.com \
--cc=Sunil-kumar.Dommati@amd.com \
--cc=Syed.SabaKareem@amd.com \
--cc=Vijendar.Mukunda@amd.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=pierre-louis.bossart@linux.dev \
--cc=tiwai@suse.com \
--cc=venkataprasad.potturu@amd.com \
--cc=yung-chuan.liao@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®