From: sashiko-bot@kernel.org
To: "Valerio Setti" <vsetti@baylibre.com>
Cc: devicetree@vger.kernel.org, neil.armstrong@linaro.org,
linux-amlogic@lists.infradead.org, conor+dt@kernel.org,
robh@kernel.org
Subject: Re: [PATCH v3 5/7] ASoC: meson: aiu: add I2S Capture DAI
Date: Tue, 22 Sep 2026 16:15:44 +0000 [thread overview]
Message-ID: <20260922161545.586141F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260922-audin-v3-5-a760312c076c@baylibre.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] ASoC: meson: missing DAPM route for I2S Encoder Capture breaks capture
--
commit fa09911e4a594b581f33e550b8e59c1534b784f0
Author: Valerio Setti <vsetti@baylibre.com>
ASoC: meson: aiu: add I2S Capture DAI
Add capture stream to CPU_I2S_ENCODER to handle both playback and capture
streams. Captured data is formatted and buffered from the widgets, then bulk
transmitted into RAM.
> Add capture stream to CPU_I2S_ENCODER making it able to handle both
> playback and capture streams. Captured data is formatted from
> "audin-formatter-i2s" widget, buffered from "audin-fifo" into an internal
> FIFO and then bulk transmitted into RAM when the FIFO is full.
Is the formatter widget in audin.c erroneously named 'I2S Formatter' instead
of 'audin-formatter-i2s' as claimed here?
This creates a naming collision with the playback formatter in aiu.c.
> diff --git a/sound/soc/meson/aiu.c b/sound/soc/meson/aiu.c
> index 535fbf7c16394..14d0e20a4bd66 100644
> --- a/sound/soc/meson/aiu.c
> +++ b/sound/soc/meson/aiu.c
> @@ -153,6 +153,13 @@ static struct snd_soc_dai_driver aiu_cpu_dai_drv[] = {
> .rates = SNDRV_PCM_RATE_8000_192000,
> .formats = AIU_FORMATS,
> },
> + .capture = {
> + .stream_name = "I2S Encoder Capture",
[Severity: High]
Are the DAPM routes for this capture path missing?
The patch creates the 'I2S Encoder Capture' BE stream widget but fails to add
any snd_soc_dapm_route connecting it to the formatter (neither in aiu.c nor in
audin.c). As a result, the capture path is disjoint.
When the capture stream is opened, the DAPM graph traversal in
audin_formatter_i2s_get_be() fails to find a backend source, returning NULL.
This triggers a WARN_ON(!ts) inside gx_formatter_power_up() and returns
-ENODEV, breaking capture functionality.
> + .channels_min = 2,
> + .channels_max = 2,
> + .rates = SNDRV_PCM_RATE_8000_192000,
> + .formats = SNDRV_PCM_FMTBIT_S16_LE,
> + },
> .ops = &aiu_encoder_i2s_dai_ops,
> .symmetric_rate = 1,
> },
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260922-audin-v3-0-a760312c076c@baylibre.com?part=5
WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Valerio Setti" <vsetti@baylibre.com>
Cc: devicetree@vger.kernel.org, neil.armstrong@linaro.org,
linux-amlogic@lists.infradead.org, conor+dt@kernel.org,
robh@kernel.org
Subject: Re: [PATCH v3 5/7] ASoC: meson: aiu: add I2S Capture DAI
Date: Tue, 22 Sep 2026 16:15:44 +0000 [thread overview]
Message-ID: <20260922161545.586141F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260922-audin-v3-5-a760312c076c@baylibre.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] ASoC: meson: missing DAPM route for I2S Encoder Capture breaks capture
--
commit fa09911e4a594b581f33e550b8e59c1534b784f0
Author: Valerio Setti <vsetti@baylibre.com>
ASoC: meson: aiu: add I2S Capture DAI
Add capture stream to CPU_I2S_ENCODER to handle both playback and capture
streams. Captured data is formatted and buffered from the widgets, then bulk
transmitted into RAM.
> Add capture stream to CPU_I2S_ENCODER making it able to handle both
> playback and capture streams. Captured data is formatted from
> "audin-formatter-i2s" widget, buffered from "audin-fifo" into an internal
> FIFO and then bulk transmitted into RAM when the FIFO is full.
Is the formatter widget in audin.c erroneously named 'I2S Formatter' instead
of 'audin-formatter-i2s' as claimed here?
This creates a naming collision with the playback formatter in aiu.c.
> diff --git a/sound/soc/meson/aiu.c b/sound/soc/meson/aiu.c
> index 535fbf7c16394..14d0e20a4bd66 100644
> --- a/sound/soc/meson/aiu.c
> +++ b/sound/soc/meson/aiu.c
> @@ -153,6 +153,13 @@ static struct snd_soc_dai_driver aiu_cpu_dai_drv[] = {
> .rates = SNDRV_PCM_RATE_8000_192000,
> .formats = AIU_FORMATS,
> },
> + .capture = {
> + .stream_name = "I2S Encoder Capture",
[Severity: High]
Are the DAPM routes for this capture path missing?
The patch creates the 'I2S Encoder Capture' BE stream widget but fails to add
any snd_soc_dapm_route connecting it to the formatter (neither in aiu.c nor in
audin.c). As a result, the capture path is disjoint.
When the capture stream is opened, the DAPM graph traversal in
audin_formatter_i2s_get_be() fails to find a backend source, returning NULL.
This triggers a WARN_ON(!ts) inside gx_formatter_power_up() and returns
-ENODEV, breaking capture functionality.
> + .channels_min = 2,
> + .channels_max = 2,
> + .rates = SNDRV_PCM_RATE_8000_192000,
> + .formats = SNDRV_PCM_FMTBIT_S16_LE,
> + },
> .ops = &aiu_encoder_i2s_dai_ops,
> .symmetric_rate = 1,
> },
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260922-audin-v3-0-a760312c076c@baylibre.com?part=5
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2026-09-22 16:15 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 16:00 [PATCH v3 0/7] ASoC: meson: gx: add base support for I2S audio input Valerio Setti
2026-09-22 16:00 ` Valerio Setti
2026-09-22 16:00 ` [PATCH v3 1/7] ASoC: dt-bindings: amlogic,gx-audin: add schema Valerio Setti
2026-09-22 16:00 ` Valerio Setti
2026-09-28 9:54 ` Krzysztof Kozlowski
2026-09-28 9:54 ` Krzysztof Kozlowski
2026-09-28 20:43 ` Valerio Setti
2026-09-28 20:43 ` Valerio Setti
2026-09-22 16:00 ` [PATCH v3 2/7] ASoC: meson: build gx-formatter as a separate module Valerio Setti
2026-09-22 16:00 ` Valerio Setti
2026-09-22 16:00 ` [PATCH v3 3/7] ASoC: meson: aiu-encoder-i2s: ensure clk divider gets disabled in hw_free Valerio Setti
2026-09-22 16:00 ` Valerio Setti
2026-09-22 16:00 ` [PATCH v3 4/7] ASoC: meson: add AUDIN driver Valerio Setti
2026-09-22 16:00 ` Valerio Setti
2026-09-22 16:17 ` sashiko-bot
2026-09-22 16:17 ` sashiko-bot
2026-09-22 16:00 ` [PATCH v3 5/7] ASoC: meson: aiu: add I2S Capture DAI Valerio Setti
2026-09-22 16:00 ` Valerio Setti
2026-09-22 16:15 ` sashiko-bot [this message]
2026-09-22 16:15 ` sashiko-bot
2026-09-22 16:00 ` [PATCH v3 6/7] ASoC: meson: gx-card: add support for audin FIFO Valerio Setti
2026-09-22 16:00 ` Valerio Setti
2026-09-22 16:00 ` [PATCH v3 7/7] arm64: dts: amlogic: gx: add AUDIN node Valerio Setti
2026-09-22 16:00 ` Valerio Setti
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=20260922161545.586141F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vsetti@baylibre.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 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.