From: sashiko-bot@kernel.org
To: "Valerio Setti" <vsetti@baylibre.com>
Cc: neil.armstrong@linaro.org, linux-amlogic@lists.infradead.org
Subject: Re: [PATCH 2/2] ASoC: meson: aiu-formatter: remove pipeline reset from prepare
Date: Thu, 02 Jul 2026 11:14:20 +0000 [thread overview]
Message-ID: <20260702111422.42BA01F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260702-fix-24-bit-i2s-playback-v1-2-bcd3a43fe32a@baylibre.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Removing the pipeline reset from `aiu_formatter_i2s_prepare()` breaks dynamic DAPM routing (DPCM), potentially leaving the I2S formatter with an un-updated or corrupted state when attached to an already-running stream.
--
commit 7dba2169385903a506465200e005128765741cfe
Author: Valerio Setti <vsetti@baylibre.com>
ASoC: meson: aiu-formatter: remove pipeline reset from prepare
This commit removes the pipeline reset from aiu_formatter_i2s_prepare(). The
commit message claims this is redundant because it is already handled by
aiu_fifo_i2s_trigger() during trigger time.
> diff --git a/sound/soc/meson/aiu-formatter-i2s.c b/sound/soc/meson/aiu-formatter-i2s.c
> index b4604734fe88d..cb554c2e7ce4a 100644
> --- a/sound/soc/meson/aiu-formatter-i2s.c
> +++ b/sound/soc/meson/aiu-formatter-i2s.c
[ ... ]
> @@ -55,11 +54,11 @@ static int aiu_formatter_i2s_prepare(struct regmap *map,
> {
> /* Always operate in split (classic interleaved) mode */
> unsigned int desc = 0;
> - unsigned int tmp;
>
> - /* Reset required to update the pipeline */
> - regmap_write(map, AIU_RST_SOFT, AIU_RST_SOFT_I2S_FAST);
> - regmap_read(map, AIU_I2S_SYNC, &tmp);
> + /*
> + * Pipeline reset is already implemented in aiu_fifo_i2s_trigger() at
> + * trigger time.
> + */
[Severity: High]
Does removing this reset break dynamic DAPM routing (DPCM)?
When a backend is dynamically connected to an already-running frontend via
DPCM, the frontend's trigger() callback is not invoked again.
For example, if the I2S FIFO frontend is started (e.g., routed to the SPDIF
backend) and then the I2S backend is dynamically connected while the stream is
running, the "I2S Formatter" DAPM widget powers up and calls
aiu_formatter_i2s_prepare().
Without the reset pulse here, will the hardware fail to latch new
configurations (like AIU_I2S_SOURCE_DESC), potentially resulting in corrupted
or no audio output from the I2S backend?
>
> switch (ts->physical_width) {
> case 16: /* Nothing to do */
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260702-fix-24-bit-i2s-playback-v1-0-bcd3a43fe32a@baylibre.com?part=2
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2026-07-02 11:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-02 10:56 [PATCH 0/2] ASoC: meson: aiu: fix playback issue for 24-bit mode Valerio Setti
2026-07-02 10:56 ` [PATCH 1/2] ASoC: meson: gx-formatter: prepare on attach Valerio Setti
2026-07-02 11:10 ` sashiko-bot
2026-07-02 20:34 ` Valerio Setti
2026-07-03 7:34 ` Jerome Brunet
2026-07-02 10:56 ` [PATCH 2/2] ASoC: meson: aiu-formatter: remove pipeline reset from prepare Valerio Setti
2026-07-02 11:14 ` sashiko-bot [this message]
2026-07-02 20:44 ` Valerio Setti
2026-07-03 7:58 ` Jerome Brunet
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=20260702111422.42BA01F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=neil.armstrong@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox