]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun8i-codec: Protect the clock rate while streams are open
authorSamuel Holland <samuel@sholland.org>
Wed, 14 Oct 2020 06:19:36 +0000 (01:19 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 14:57:01 +0000 (14:57 +0000)
commitcf50bd9dbfff13d6b6bb9c466c2d265a14ace578
tree286e5b3601d1d3fc47b44f2af6eec38b1eafd322
parenta03114bc3c37525023ee05c23a514971cb925863
ASoC: sun8i-codec: Protect the clock rate while streams are open

The codec's clock input is shared among all AIFs, and shared with other
audio-related hardware in the SoC, including I2S and SPDIF controllers.
To ensure sample rates selected by userspace or by codec2codec DAI links
are maintained, the clock rate must be protected while it is in use.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20201014061941.4306-13-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/Kconfig
sound/soc/sunxi/sun8i-codec.c