[rulkc] [PATCH v1 0/2] NTP8918 BCK rate calculation based on TDM params
Ilias Izmaylov
ikizmaylov at salutedevices.com
Sun Feb 15 22:29:35 MSK 2026
This patchset changes the way that BCK rate is calculated inside ntp8918
codec so that the MCF bit could be set correctly depending on the
situation.
Previously this codec used snd_soc_params_to_bclk function to get BCK
rate which means that it used the input frame size and multiplied it by
sample rate. This is incorrect because according to ntp8918's datasheet
it's frame size is fixed to 32 bits (64 bit frame / 2 slots). So I
thought it'd be a better idea to explicitly set these parameters in a
device tree node as tdm slot width and slot number and use function
snd_soc_tdm_params_to_bclk instead to calculate BCK rate.
Ilias Izmaylov (2):
arm64: dts: meson: boom: set tdm slot width to 32
ASoC: codecs: ntp8918: calculate bclk using tdm params
.../amlogic/meson-axg-sberdevices-boom.dts | 1 +
sound/soc/codecs/ntp8918.c | 43 ++++++++++++++++++-
2 files changed, 43 insertions(+), 1 deletion(-)
--
2.47.3
More information about the rulkc
mailing list