ASoC: hdmi-codec: re-introduce mutex locking
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 13 May 2019 08:18:47 +0000 (10:18 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 13 May 2019 11:46:47 +0000 (12:46 +0100)
commiteb1ecadb7f67dde94ef0efd3ddaed5cb6c9a65ed
tree9188b608dc21725e5bead9624c3a77174187cae0
parente7ecfdb794fef1f6c91f62a40fd6aa3d4d8d2471
ASoC: hdmi-codec: re-introduce mutex locking

Replace the bit atomic operations by a mutex to ensure only one dai
at a time is active on the hdmi codec.

This is a follow up on change:
3fcf94ef4d41 ("ASoC: hdmi-codec: remove reference to the current substream")

Suggested-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdmi-codec.c