linux-stable/sound/soc/meson
Jerome Brunet ff4dd05a94 ASoC: meson: axg-tdm-interface: add frame rate constraint
[ Upstream commit 59c6a3a43b ]

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: d60e4f1e4b ("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-03-26 18:20:51 -04:00
..
aiu-acodec-ctrl.c
aiu-codec-ctrl.c
aiu-encoder-i2s.c
aiu-encoder-spdif.c
aiu-fifo-i2s.c
aiu-fifo-spdif.c
aiu-fifo.c
aiu-fifo.h
aiu.c ASoC: meson: aiu: fix function pointer type mismatch 2024-03-26 18:20:48 -04:00
aiu.h ASoC: meson: aiu: fix function pointer type mismatch 2024-03-26 18:20:48 -04:00
axg-card.c
axg-fifo.c
axg-fifo.h
axg-frddr.c
axg-pdm.c
axg-spdifin.c ASoC: meson: spdifin: start hw on dai probe 2023-10-06 14:56:35 +02:00
axg-spdifout.c
axg-tdm-formatter.c ASoC: meson: axg-tdm-formatter: fix channel slot allocation 2023-08-23 17:52:37 +02:00
axg-tdm-formatter.h
axg-tdm-interface.c ASoC: meson: axg-tdm-interface: add frame rate constraint 2024-03-26 18:20:51 -04:00
axg-tdm.h
axg-tdmin.c
axg-tdmout.c
axg-toddr.c
g12a-toacodec.c ASoC: meson: g12a-toacodec: Fix event generation 2024-01-10 17:10:25 +01:00
g12a-tohdmitx.c ASoC: meson: g12a-tohdmitx: Fix event generation for S/PDIF mux 2024-01-10 17:10:25 +01:00
gx-card.c
Kconfig
Makefile
meson-card-utils.c
meson-card.h
meson-codec-glue.c
meson-codec-glue.h
t9015.c ASoC: meson: t9015: fix function pointer type mismatch 2024-03-26 18:20:48 -04:00