kernel_samsung_a53x/sound/soc/meson
Jerome Brunet 75ab38c9e6 ASoC: meson: axg-tdm-interface: add frame rate constraint
[ Upstream commit 59c6a3a43b221cc2a211181b1298e43b2c2df782 ]

According to Amlogic datasheets for the SoCs supported by this driver, the
maximum bit clock rate is 100MHz.

The tdm interface allows the rates listed by the DAI driver, regardless of
the number slots or their width. However, these will impact the bit clock
rate.

Hitting the 100MHz limit is very unlikely for most use cases but it is
possible.

For example with 32 slots / 32 bits wide, the maximum rate is no longer
384kHz but ~96kHz.

Add the constraint accordingly if the component is not already active.
If it is active, the rate is already constrained by the first stream rate.

Fixes: d60e4f1e4be5 ("ASoC: meson: add tdm interface driver")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://msgid.link/r/20240223175116.2005407-3-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:55 +01:00
..
aiu-acodec-ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-codec-ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-encoder-i2s.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-encoder-spdif.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-fifo-i2s.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-fifo-spdif.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-fifo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-fifo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu.c ASoC: meson: aiu: fix function pointer type mismatch 2024-11-19 08:44:53 +01:00
aiu.h ASoC: meson: aiu: fix function pointer type mismatch 2024-11-19 08:44:53 +01:00
axg-card.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-fifo.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
axg-fifo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-frddr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-pdm.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
axg-spdifin.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
axg-spdifout.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
axg-tdm-formatter.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
axg-tdm-formatter.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-tdm-interface.c ASoC: meson: axg-tdm-interface: add frame rate constraint 2024-11-19 08:44:55 +01:00
axg-tdm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-tdmin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-tdmout.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-toddr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
g12a-toacodec.c ASoC: meson: g12a-toacodec: Fix event generation 2024-11-18 12:12:07 +01:00
g12a-tohdmitx.c ASoC: meson: g12a-tohdmitx: Fix event generation for S/PDIF mux 2024-11-18 12:12:07 +01:00
gx-card.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson-card-utils.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
meson-card.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson-codec-glue.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson-codec-glue.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
t9015.c ASoC: meson: t9015: fix function pointer type mismatch 2024-11-19 08:44:53 +01:00