]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: fsl-asoc-card: add sysclk_ratio for calculate sysclk frequency
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 8 Jul 2025 08:53:17 +0000 (16:53 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 13 Jul 2025 21:37:01 +0000 (22:37 +0100)
commitaf241e3fa4d823f8af899c92fd50d020816a1860
treecf2c4ad01079da2133045b0f6299d2a06fbe9e39
parentad4655653a6c463026ed3c300e5fb34f39abff48
ASoC: fsl-asoc-card: add sysclk_ratio for calculate sysclk frequency

The sysclk frequency can be calculated from sample rate multiply ratio.
When sysclk_freq is not configured, but sysclk_ratio is configured, then
calculate sysclk frequency according to sysclk_ratio.

Apply this change for wm8524 codec.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/20250708085318.2563521-1-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl-asoc-card.c