]> git.baikalelectronics.ru Git - kernel.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)
commit41b546857f17547a3b20fe1d080a23d33a606510
treeac79cc06a114d63939554ff3a56ca4432e6846d4
parent8cbfa6ff5b8e3ffabccb42c32130fc2bdb959077
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