]> 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)
commit90e69cedc759fcab809b5715f39cbcf01c6acffc
treeac79cc06a114d63939554ff3a56ca4432e6846d4
parent0797066ad9b599d8365bf753bb9be48cda8bb0d9
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