[PATCH 0/6] arm64: qcom: Arduino UNO Q: DisplayPort audio playback

From: Riccardo Mereu

Date: Tue Dec 01 2026 - 08:12:27 EST


The Arduino UNO Q (QRB2210) drives DisplayPort over its USB-C port
through an ANX7625 bridge. The bridge takes audio on an I2S input wired
to the LPASS Secondary MI2S interface. This series adds DP audio
playback on top of the sound card support for the board that is already
in linux-next.

The ANX7625 has its I2S channel length fixed to 32 bits, while the MI2S
backends of the sm8250 machine driver always run with 16-bit slots and
a fixed 1.536 MHz bit clock. The board therefore needs a way to ask for
32-bit slots, and the rest of the path has to accept them.

Patches 1-2 are fixes for bugs found while bringing the board up. They
do not depend on the rest of the series and can be picked on their own:

- 1: register frontend DAI links before backend ones. The board DT
lists its backend links first, and without this patch the card
does not register here ("Failed to add route ...", card -19).
- 2: out of bounds write in pm4125 when a compander switch is set.

Patch 3 lets a board run an MI2S backend with 32-bit slots: the sm8250
machine driver takes the slot width from dai-tdm-slot-width in the cpu
node of the dai-link and derives the bit clock from the stream
parameters. Without the property nothing changes for existing boards.
The MI2S playback DAIs already accept S24_LE and S32_LE since
commit e03e85ff7500 ("ASoC: qcom: q6dsp: add S24_LE and S32_LE to MI2S
playback DAIs").

Patches 4-5 are for the ANX7625: the binding allows #sound-dai-cells
and the driver accepts a 32-bit sample width.

Patch 6 describes the DP audio path in the board DT. An overlay that
takes the DSI output away from the ANX7625 (a DSI panel) must also
disable &dp_audio_link, otherwise the sound card waits for the missing
codec and does not register at all.

There are no build dependencies between the ASoC, drm/bridge and DT
parts. Patch 6 needs patch 4 to pass dtbs_check, and patches 3 and 5
for the link to work at runtime.

Tested on the Arduino UNO Q on next-20261127, which includes the 24-bit
fix for q6asm, commit f29b683543cc ("ASoC: qcom: q6asm: fix 24-bit PCM
level via media format V4/V5"):

- The I2S bus captured with a logic analyser: S16_LE, S24_3LE and
S32_LE reach the bridge bit-exact, MSB aligned in the 32-bit slots,
with a 3.072 MHz bit clock. S32_LE keeps all 32 bits.
- S16_LE, S24_3LE and S32_LE at the same level on a DP monitor, left
and right correct, also through PipeWire, which now picks S32_LE.
- 20 stop/prepare cycles of an open stream, 44.1 kHz resampled by the
DSP, and DP and headphones playing at the same time.
- Headphone playback and headset microphone capture still work, at
16 and 24 bits.
- With the DP link disabled by an overlay, the card registers without
it and the analog paths still work.

Only this board was tested. Other users of the sm8250 machine driver
keep S16_LE and a 1.536 MHz bit clock, but the clock is now set in
hw_params instead of startup.

Riccardo Mereu (4):
ASoC: codecs: pm4125: add compander channels to the RX channel table
ASoC: qcom: sm8250: support 32-bit MI2S slots
dt-bindings: display: bridge: analogix,anx7625: add #sound-dai-cells
arm64: dts: qcom: qrb2210-arduino-imola: add DP audio playback

Srinivas Kandagatla (2):
ASoC: qcom: common: setup fe dais before be dais
drm/bridge: anx7625: accept 32-bit I2S sample width

.../display/bridge/analogix,anx7625.yaml | 4 +
arch/arm64/boot/dts/qcom/Makefile | 1 +
.../boot/dts/qcom/qrb2210-arduino-imola.dts | 43 +++++
drivers/gpu/drm/bridge/analogix/anx7625.c | 1 +
sound/soc/codecs/pm4125-sdw.c | 2 +
sound/soc/qcom/common.c | 182 +++++++++++-------
sound/soc/qcom/sm8250.c | 114 ++++++-----
7 files changed, 216 insertions(+), 131 deletions(-)


base-commit: e5aad2bdbbee783611d32599f89cea3f12f9593d
--
2.56.1


--





Privacy and Confidentiality Notice: This email and all attachments are
confidential and for the designated recipient(s) only. They may also be
privileged. If you are not the intended recipient or among the intended
recipients, you may not use, read, retransmit, disseminate, store/copy the
information in any medium or take any action in reliance upon it. Please
notify the sender that you have received it in error and immediately delete
the entire communication, including any attachments.