Skip to content

ASoC: qcom: sc8280xp: decouple Arduino Monza config from qcom,qcs8275-sndcard

Gianfranco Mariotti linux-arm-msm linux-devicetree linux-sound lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ASoC: dt-bindings: qcom,sm8250: add arduino,monza-sndcard compatibleDocumentation/devicetree/bindings/sound/qcom,sm8250.yaml+3 -00 replies
2/3ASoC: qcom: sc8280xp: move Arduino Monza config out of qcs8275_priv_datasound/soc/qcom/sc8280xp.c+28 -60 replies
3/3arm64: dts: qcom: monaco-arduino-monza: use arduino,monza-sndcard compatiblearch/arm64/boot/dts/qcom/monaco-arduino-monza.dts+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] ASoC: qcom: sc8280xp: decouple Arduino Monza config from qcom,qcs8275-sndcard

Commit 4ba2678ad03e ("ASoC: qcom: sc8280xp: add monaco/monza controls for qcs8275") attached Arduino VENTUNO Q (Monza) MAX98090 widgets, pin switches, DAI format, and 256*fs codec sysclk setup directly to qcs8275_priv_data, which backs the generic "qcom,qcs8275-sndcard" compatible already shared by Monaco EVK, Monaco AC EVK, and other QCS8275 carrier boards.

On non-Monza QCS8275 boards this causes multiple regressions:
- Replaces sc8280xp_dapm_widgets with max98090_dapm_widgets and adds max98090_controls, exposing six nonexistent MAX98090 pin switches on Monaco EVK / Monaco AC EVK, colliding with max98357a's "Speaker" DAPM widget, and dropping the "DP0 Jack".."DP7 Jack" widgets.
- Forces codec_sysclk_set (256 * rate on MI2S, bitclock rate on TDM) and codec_dai_fmt (I2S | NB_NF | BC_FC) onto every QCS8275 board's codecs, breaking codecs clocked from a different MCLK rate or DAI format.

Fix this by introducing a dedicated "arduino,monza-sndcard" compatible:
- Patch 1 documents "arduino,monza-sndcard" with "qcom,qcs8275-sndcard" as fallback in qcom,sm8250.yaml.
- Patch 2 moves the MAX98090 configuration to monza_priv_data, restores qcs8275_priv_data to clean generic QCS8275 defaults, and falls back to monza_priv_data when matching "qcom,qcs8275-sndcard" on an "arduino,monza" machine so existing DTBs continue working.
- Patch 3 updates monaco-arduino-monza.dts to use "arduino,monza-sndcard" with "qcom,qcs8275-sndcard" as fallback (merge-order-independent across the ASoC and Qualcomm DT trees).

Gianfranco Mariotti (3):
ASoC: dt-bindings: qcom,sm8250: add arduino,monza-sndcard compatible
ASoC: qcom: sc8280xp: move Arduino Monza config out of

    qcs8275_priv_data

arm64: dts: qcom: monaco-arduino-monza: use arduino,monza-sndcard
compatible

 .../bindings/sound/qcom,sm8250.yaml           |  3 ++
 .../boot/dts/qcom/monaco-arduino-monza.dts    |  2 +-
 sound/soc/qcom/sc8280xp.c                     | 34 +++++++++++++++----
 3 files changed, 32 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1