All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: amd: acp: add RT766 SoundWire machine entries for ACP7.F
@ 2026-11-30 15:19 npoojith
  2026-11-30 15:33 ` Mario Limonciello
  2026-11-30 18:36 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: npoojith @ 2026-11-30 15:19 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, lgirdwood, perex, tiwai, pierre-louis.bossart,
	yung-chuan.liao, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
	venkataprasad.potturu, Syed.SabaKareem, Mario.Limonciello,
	Richard.Gong, Vijendar.Mukunda, linux-sound, linux-kernel,
	Poojitha N

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: amd: acp: add RT766 SoundWire machine entries for ACP7.F
  2026-11-30 15:19 [PATCH] ASoC: amd: acp: add RT766 SoundWire machine entries for ACP7.F npoojith
@ 2026-11-30 15:33 ` Mario Limonciello
  2026-11-30 18:36 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mario Limonciello @ 2026-11-30 15:33 UTC (permalink / raw)
  To: npoojith, broonie
  Cc: alsa-devel, lgirdwood, perex, tiwai, pierre-louis.bossart,
	yung-chuan.liao, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
	venkataprasad.potturu, Syed.SabaKareem, Richard.Gong,
	Vijendar.Mukunda, linux-sound, linux-kernel, Poojitha N



On 11/30/26 09:19, npoojith@amd.com wrote:
> 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>

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>

> ---
>   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",

I'm sure you're already aware, but just to make sure it's noted to 
anyone that comes across this patch this topology still needs to be 
upstreamed too.

> +		.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,


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: amd: acp: add RT766 SoundWire machine entries for ACP7.F
  2026-11-30 15:19 [PATCH] ASoC: amd: acp: add RT766 SoundWire machine entries for ACP7.F npoojith
  2026-11-30 15:33 ` Mario Limonciello
@ 2026-11-30 18:36 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2026-11-30 18:36 UTC (permalink / raw)
  To: npoojith
  Cc: alsa-devel, lgirdwood, perex, tiwai, pierre-louis.bossart,
	yung-chuan.liao, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
	venkataprasad.potturu, Syed.SabaKareem, Mario.Limonciello,
	Richard.Gong, Vijendar.Mukunda, linux-sound, linux-kernel,
	Poojitha N

On Mon, 30 Nov 2026 20:49:42 +0530, npoojith@amd.com wrote:
> ASoC: amd: acp: add RT766 SoundWire machine entries for ACP7.F

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.5

Thanks!

[1/1] ASoC: amd: acp: add RT766 SoundWire machine entries for ACP7.F
      https://git.kernel.org/broonie/sound/c/c292fb07f795

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-01 12:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 15:19 [PATCH] ASoC: amd: acp: add RT766 SoundWire machine entries for ACP7.F npoojith
2026-11-30 15:33 ` Mario Limonciello
2026-11-30 18:36 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.