From: Mario Limonciello <mario.limonciello@amd.com>
To: Yu-Chun Lin <eleanor15x@gmail.com>,
lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz,
tiwai@suse.com
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
visitorckw@gmail.com, jserv@ccns.ncku.edu.tw,
kernel test robot <lkp@intel.com>
Subject: Re: [PATCH] ASoC: amd: Add ACPI dependency to fix build error
Date: Thu, 9 Jan 2025 12:15:02 -0600 [thread overview]
Message-ID: <d77b1111-b113-4e47-bcf5-5584ded1d28f@amd.com> (raw)
In-Reply-To: <20250109171547.362412-1-eleanor15x@gmail.com>
On 1/9/2025 11:15, Yu-Chun Lin wrote:
> As reported by the kernel test robot, the following error occurs:
>
> sound/soc/amd/yc/acp6x-mach.c: In function 'acp6x_probe':
>>> sound/soc/amd/yc/acp6x-mach.c:573:15: error: implicit declaration of function 'acpi_evaluate_integer'; did you mean 'acpi_evaluate_object'? [-Werror=implicit-function-declaration]
> 573 | ret = acpi_evaluate_integer(handle, "_WOV", NULL, &dmic_status);
> | ^~~~~~~~~~~~~~~~~~~~~
> | acpi_evaluate_object
> cc1: some warnings being treated as errors
>
> The function 'acpi_evaluate_integer' and its prototype in 'acpi_bus.h'
> are only available when 'CONFIG_ACPI' is enabled. Add a 'depends on ACPI'
> directive in Kconfig to ensure proper compilation.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202501090345.pBIDRTym-lkp@intel.com/
> Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Thanks for the fix!
Fixes: 4095cf872084 (ASoC: amd: yc: Fix for enabling DMIC on acp6x via
_DSD entry)
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
I was also worried about commit 88438444fdddd ("ASoC: amd: ps: Fix for
enabling DMIC on acp63 platform via _DSD entry"), but this was set
correctly originally in commit 1e4366489e2c0 ("ASoC: amd: enable Pink
Sardine acp6.2 drivers build").
> ---
> sound/soc/amd/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/amd/Kconfig b/sound/soc/amd/Kconfig
> index c7590d4989bb..803521178279 100644
> --- a/sound/soc/amd/Kconfig
> +++ b/sound/soc/amd/Kconfig
> @@ -105,7 +105,7 @@ config SND_SOC_AMD_ACP6x
> config SND_SOC_AMD_YC_MACH
> tristate "AMD YC support for DMIC"
> select SND_SOC_DMIC
> - depends on SND_SOC_AMD_ACP6x
> + depends on SND_SOC_AMD_ACP6x && ACPI
> help
> This option enables machine driver for Yellow Carp platform
> using dmic. ACP IP has PDM Decoder block with DMA controller.
next prev parent reply other threads:[~2025-01-09 18:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-09 17:15 [PATCH] ASoC: amd: Add ACPI dependency to fix build error Yu-Chun Lin
2025-01-09 18:15 ` Mario Limonciello [this message]
2025-01-09 18:28 ` Mark Brown
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=d77b1111-b113-4e47-bcf5-5584ded1d28f@amd.com \
--to=mario.limonciello@amd.com \
--cc=broonie@kernel.org \
--cc=eleanor15x@gmail.com \
--cc=jserv@ccns.ncku.edu.tw \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=lkp@intel.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=visitorckw@gmail.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