From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796052821; b=fhS82xedRA5JKYdL4AAdE+IJWT0h46U/TKfxgvn3+yIilEAr45uKEyH7zH5cMYhVvP6f rIpYOo+sdbrzuqtqcesYlTDmFIkjOApmAlJ8aVChYjBm6CBvQWvCUcX4MZYmK3+UPUIzo iRTTwKmCPh50l877DbqfDU1gv2Q/FPeAs6h0S/vDXlUwuCCwLR/oGSYXEiidUBzJS3/Xq cfA+P0FiowkxYaD7MVNCbskrja008+urBazY5gekixAi++WIe2mI1lXYAzR7nQuHV2kXp W7A5E+oWVMP8ONiy4McDy3oh0eO0FgO5hbqQBscMK0c26mliogZNqAiRnWwV/KWqrcA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796052821; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=edXd2X6Um7CMnBu5GwioJy1JSgLM7470nJhHxyCv+XY=; b=o0djMQC8qazoWnUwmClml5JoJ7t4GlpT8fW1UF0n+/KwCBp6jdhFxviFOvs8IYlJ7o7N uXVMhbNtBPDmv4MXBNWjyvWjyfKd3OP/ZLVHhff3x2Oa0KFDo6APyq5WoJAfoBURnWTIt XrNhqy7h4DfBDyl8UnKGPUl3jTdnUC+dCuFT/94N/qdfqKQieK4pYsgKPmkTCZAzp2+sm VHaAXunqj47YSShRLCHpxvb8pyJujUVe04axr6IZLqoyFKEX0HzN4QfjZFiZdnpMMH7iM YXa99WNOA+ZJIL4w3Hb/++YS4kIBIK5xEXyIErMfW79aYzulx2HbtZiAtwDBoMIoNGg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fxGLgCtk; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DE98606A31C; Mon, 30 Nov 2026 15:33:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fxGLgCtk Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7428B1F00923; Mon, 30 Nov 2026 15:33:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796052820; bh=edXd2X6Um7CMnBu5GwioJy1JSgLM7470nJhHxyCv+XY=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=fxGLgCtklUY4g5F/elcZemt8YZ4JhLJboKEImb3YdUpx7SzyoksuuZeZvuql/B/eY JSFk/zeFLfZIAQzFiqrSx9jZkhk9JoKG80M+0fBnk0/j5dRxVCEoH7smM7a5CZfa6r Bn/g3VSBYMf42as/9GLrdarbfxG47ez8mwbitfr0msZI+TVw24rnw5s6eAMHLnJDa0 qsNCw+XaDqHVheIAsB8EUn4q/BPoTTyruaDAFM4j5j/YN9adA9iAndhMNMzfUmNHpY VImLxeobrGF518SFm10FHEU1Jf/Zn2TlfImQgyWwcRnjBfEVmW8h3jefq6/bO25J/n VaUquimcUi0QA== Message-ID: <30dbe37c-005a-481c-aaef-90a7ee0a288e@kernel.org> Date: Mon, 30 Nov 2026 09:33:38 -0600 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ASoC: amd: acp: add RT766 SoundWire machine entries for ACP7.F Content-Language: en-US To: npoojith@amd.com, 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, Richard.Gong@amd.com, Vijendar.Mukunda@amd.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Poojitha N References: <20261130152104.3803413-1-npoojith@amd.com> From: Mario Limonciello In-Reply-To: <20261130152104.3803413-1-npoojith@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/30/26 09:19, npoojith@amd.com wrote: > From: Poojitha N > > 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 Reviewed-by: Mario Limonciello (AMD) > --- > 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,