Re: [PATCH v7 0/7] Add support for S4 audio

From: Jerome Brunet

Date: Mon Oct 26 2026 - 04:49:54 EST


On dim. 25 oct. 2026 at 20:23, christian.koever-draxl@xxxxxxxxxxxxxxxxxx wrote:

> From: Christian Stefan Kövér-Draxl <ckoever@xxxxxxxxxx>
>
> This picks up Jiebing Chen's "[PATCH v6 0/4] Add support for S4 audio"
> (and the tohdmitx S4 patch) unchanged apart from rebasing, with
> Jiebing's authorship kept, and adds one fix on top:
>
> 6: g12a-toacodec: fix the S4 source mux read-back. The S4 DAT_SEL
> field moved, so the mux always read back as input A and DAPM never
> powered the selected path.
>

Jiebing has posted a v7 already.

Using AI is certainly nice but I would advise that you slow down a
little and get used to working with the mainling before sending 7 series
in a matter of hours.

> [ckoever: Jiebing, if you have a newer version or prefer to post this
> yourself, I am happy to rebase the fix onto that instead.]
>

For example, instead of this you could have tried to ping him privately
before trying to takeover from him. He would probably have told you
that he has already sent a v7 and (I suppose) is working on v8.

So please be patient.

> Tested: HDMI audio up to 192 kHz; the TDM-C to internal codec path
> plays without errors at 44.1 to 192 kHz (not listened to).
>
> Tool use (Documentation/process/generated-content.rst):
> This work was done with the help of an AI coding assistant, Claude
> (Anthropic), used through Claude Code over many sessions. It did a large
> part of the hands-on work: it read the vendor kernel and the firmware
> interfaces, probed registers on the board, drafted the code and the
> changelogs, and ran the builds, checkpatch, dt_binding_check and the
> tests on the hardware. I directed the work, reviewed every change and
> the final patches, and take responsibility for them. There is no single
> prompt to quote; the sessions were of the form "find out why X fails on
> this board, fix it, test it on the box".
>
> Tested on an Amediatech X98Q TV box (Amlogic S905W2, S4 family, 2 GiB),
> vendor U-Boot and BL31/OP-TEE, Linux 7.3 plus this work.
>
> Christian Stefan Kövér-Draxl (1):
> ASoC: meson: g12a-toacodec: fix the S4 source mux read-back
>
> Jiebing Chen (6):
> dt-bindings: clock: meson: Add audio power domain for S4 soc
> dt-bindings: Asoc: axg-audio: Add S4 audio tocodec
> ASoC: meson: g12a-toacodec: Add S4 tocodec driver
> clk: meson: axg_audio: add S4 support
> ASoC: dt-bindings: amlogic,g12a-tohdmitx: add S4 compatible
> ASoC: meson: g12a-tohdmitx: add S4 support
>
> .../clock/amlogic,axg-audio-clkc.yaml | 18 +-
> .../bindings/sound/amlogic,g12a-toacodec.yaml | 1 +
> .../bindings/sound/amlogic,g12a-tohdmitx.yaml | 1 +
> drivers/clk/meson/axg-audio.c | 165 ++++++++++++++++++
> sound/soc/meson/g12a-toacodec.c | 51 ++++++
> sound/soc/meson/g12a-tohdmitx.c | 80 ++++++++-
> 6 files changed, 312 insertions(+), 4 deletions(-)
>
>
> base-commit: 7be4bc52fd9e0e55dc9a2e0232b89427d2c4b614
> --
> 2.56.0
>

--
Jerome