OSDN Git Service

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)
commit3952ec2ac55a5afcda84270fa203f17a6309af6b
tree286e5b3601d1d3fc47b44f2af6eec38b1eafd322
parent15b45912341e884a16322792525db7a2b2b9a1f9
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