diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2024-02-23 18:51:08 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-02-26 14:03:14 +0000 |
commit | 59c6a3a43b221cc2a211181b1298e43b2c2df782 (patch) | |
tree | 84f472f96a77b67a11db49f8a97deb07294f8b81 /sound/soc/au1x | |
parent | e3741a8d28a1137f8b19ae6f3d6e3be69a454a0a (diff) |
ASoC: meson: axg-tdm-interface: add frame rate constraint
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>
Diffstat (limited to 'sound/soc/au1x')
0 files changed, 0 insertions, 0 deletions