ASoC: simple-card: make sysclk ordering configurable
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest2 patches 2 repliesIn review
Changes in v2 from the cover letter
- Do not change the default sysclk ordering
- Make the ordering selectable via DT flag
- Add DT binding documentation
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dt-bindings: sound: simple-card: add sysclk-cpu-first flagDocumentation/ | +11 | 2 replies | |
| 2/2 | ASoC: simple-card-utils: add selectable sysclk orderinginclude/ sound/ sound/ | +36 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] ASoC: simple-card: make sysclk ordering configurable
This patch series addresses an issue in simple-audio-card where the ordering of sysclk configuration between CPU and codec DAIs can affect the initial playback behaviour on some platforms.
Some CPU DAIs finalize the MCLK rate as part of their set_sysclk() callback. If the codec sysclk is configured before the CPU DAI applies the final MCLK rate, the codec may base its internal clocking on a non-final MCLK value, resulting in incorrect clocking on the first playback after boot.
This was observed on i.MX95 systems using fsl_sai, but the issue is generic and can affect any setup where the CPU DAI adjusts the MCLK rate in set_sysclk().
Instead of changing the ordering unconditionally, this series keeps the existing default behaviour (codec-first) and introduces a DT flag that allows selecting CPU-first sysclk ordering where required. This makes the behaviour configurable on a per-card or per-link basis while avoiding regressions on existing systems.
Patch 1 documents the new DT binding.
Patch 2 implements the selectable sysclk ordering in simple-audio-card.
v2:
- Do not change the default sysclk ordering
- Make the ordering selectable via DT flag
- Add DT binding documentation
v1:
Stefano Radaelli (2):
dt-bindings: sound: simple-card: add sysclk-cpu-first flag
ASoC: simple-card-utils: add selectable sysclk ordering
.../bindings/sound/simple-card.yaml | 11 ++++++ include/sound/simple_card_utils.h | 1 + sound/soc/generic/simple-card-utils.c | 39 +++++++++++++------ sound/soc/generic/simple-card.c | 7 ++++ 4 files changed, 47 insertions(+), 11 deletions(-)
base-commit: b7ff7151e653aa296ab6c5495b2c1ab7c21eb250
Signature · 1 line
2.47.3