From: sashiko-bot@kernel.org
To: "Eric Curtin" <ericcurtin17@gmail.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [RFC PATCH v2 3/3] ASoC: codecs: Initialise PCM hardware tables at boot for page size
Date: Wed, 02 Dec 2026 03:28:05 +0000 [thread overview]
Message-ID: <sashiko-outbox-244779@kernel.org> (raw)
In-Reply-To: <20261202031733.1704898-4-ericcurtin17@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] ASoC: codecs: undefined DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST()
breaks build
--
commit 202833e59f958a583de89e2f5513331103c9d6c9
Author: Ryan Roberts <ryan.roberts@arm.com>
ASoC: codecs: Initialise PCM hardware tables at boot for page size
This commit converts the snd_pcm_hardware tables in cros_ec_codec.c and
rt5514-spi.c to use DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST() so they can be
initialised when PAGE_SIZE is selected at boot.
> diff --git a/sound/soc/codecs/cros_ec_codec.c b/sound/soc/codecs/cros_ec_codec.c
> index b6f7016a324a8..f6e0395d47a18 100644
> --- a/sound/soc/codecs/cros_ec_codec.c
> +++ b/sound/soc/codecs/cros_ec_codec.c
> @@ -874,24 +874,24 @@ static void wov_remove(struct snd_soc_component *component)
> &priv->ec_device->event_notifier, &priv->wov_notifier);
> }
>
> +static DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST(struct snd_pcm_hardware, hw_param, {
> + .info = SNDRV_PCM_INFO_MMAP |
> + SNDRV_PCM_INFO_INTERLEAVED |
> + SNDRV_PCM_INFO_MMAP_VALID,
> + .formats = SNDRV_PCM_FMTBIT_S16_LE,
> + .rates = SNDRV_PCM_RATE_16000,
> + .channels_min = 1,
> + .channels_max = 1,
> + .period_bytes_min = PAGE_SIZE,
> + .period_bytes_max = 0x20000 / 8,
> + .periods_min = 8,
> + .periods_max = 8,
> + .buffer_bytes_max = 0x20000,
> +});
> +
> static int wov_pcm_open(struct snd_soc_component *component,
> struct snd_pcm_substream *substream)
> {
> - static const struct snd_pcm_hardware hw_param = {
> - .info = SNDRV_PCM_INFO_MMAP |
> - SNDRV_PCM_INFO_INTERLEAVED |
> - SNDRV_PCM_INFO_MMAP_VALID,
> - .formats = SNDRV_PCM_FMTBIT_S16_LE,
> - .rates = SNDRV_PCM_RATE_16000,
> - .channels_min = 1,
> - .channels_max = 1,
> - .period_bytes_min = PAGE_SIZE,
> - .period_bytes_max = 0x20000 / 8,
> - .periods_min = 8,
> - .periods_max = 8,
> - .buffer_bytes_max = 0x20000,
> - };
> -
> return snd_soc_set_runtime_hwparams(substream, &hw_param);
> }
>
> diff --git a/sound/soc/codecs/rt5514-spi.c b/sound/soc/codecs/rt5514-spi.c
> index bcc2ff28b1253..f619f34753977 100644
> --- a/sound/soc/codecs/rt5514-spi.c
> +++ b/sound/soc/codecs/rt5514-spi.c
> @@ -46,7 +46,8 @@ struct rt5514_dsp {
> int irq;
> };
>
> -static const struct snd_pcm_hardware rt5514_spi_pcm_hardware = {
> +static DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST(struct snd_pcm_hardware,
> + rt5514_spi_pcm_hardware, {
> .info = SNDRV_PCM_INFO_MMAP |
> SNDRV_PCM_INFO_MMAP_VALID |
> SNDRV_PCM_INFO_INTERLEAVED,
> @@ -58,7 +59,7 @@ static const struct snd_pcm_hardware rt5514_spi_pcm_hardware = {
> .channels_min = 1,
> .channels_max = 1,
> .buffer_bytes_max = 0x20000,
> -};
> +});
[Severity: High]
Where is DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST() defined? No header in the
tree provides this macro, so building cros_ec_codec.c or rt5514-spi.c
fails with syntax errors at the declarations and undeclared identifier
errors for hw_param and rt5514_spi_pcm_hardware.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202031733.1704898-1-ericcurtin17@gmail.com?part=3
prev parent reply other threads:[~2026-12-02 3:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 3:17 [RFC PATCH v2 0/3] ALSA/ASoC: Prepare for boot-time page size selection on arm64 Eric Curtin
2026-12-02 3:17 ` [RFC PATCH v2 1/3] ALSA: Handle run-time PAGE_SIZE in PCM hardware tables and #if checks Eric Curtin
2026-12-02 3:31 ` sashiko-bot
2026-12-02 3:17 ` [RFC PATCH v2 2/3] ASoC: tegra: Initialise PCM hardware limits at boot for page size Eric Curtin
2026-12-02 3:27 ` sashiko-bot
2026-12-02 3:17 ` [RFC PATCH v2 3/3] ASoC: codecs: Initialise PCM hardware tables " Eric Curtin
2026-12-02 3:28 ` sashiko-bot [this message]
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=sashiko-outbox-244779@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=ericcurtin17@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 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.