]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: hdmi-codec: re-introduce mutex locking again
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 6 Dec 2019 10:35:42 +0000 (11:35 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Dec 2019 18:36:33 +0000 (18:36 +0000)
commit1442842952ccfe4178602c7a8459ac2ecb9d9e1a
treeac79cc06a114d63939554ff3a56ca4432e6846d4
parentbc9a665581b3c6c82c9220a47f6573b49ce2df0b
ASoC: hdmi-codec: re-introduce mutex locking again

The dai codec needs to ensure that on one dai is used at any time.
This is currently protected by bit atomic operation. With this change,
it done with a mutex instead.

This change is not about functionality or efficiency. It is done with
the hope that it help maintainability in the future.

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