]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tegra20: spdif: Filter out unsupported rates
authorDmitry Osipenko <digetx@gmail.com>
Sat, 4 Dec 2021 14:37:15 +0000 (17:37 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 17 Dec 2021 11:13:59 +0000 (11:13 +0000)
commit6d6ce2345f9efc389d1da2190a841e8fcb0c4ca1
tree7bcf5b1be72b617b405d1e6cfca80ab29f2cd2f2
parent0f6af6775daa3173191daf9d65593cc3dc2a49d2
ASoC: tegra20: spdif: Filter out unsupported rates

SPDIF and other SoC components share audio PLL on Tegra, thus only one
component may set the desired base clock rate. This creates problem for
HDMI audio because it uses SPDIF and audio may not work if SPDIF's clock
doesn't exactly match standard audio rate since some receivers may reject
audio in that case. Filter out audio rates which SPDIF output can't
support, assuming that other components won't change rate at runtime.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20211204143725.31646-13-digetx@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra20_spdif.c