ASoC: apple: mca: Add locking
authorMartin Povišer <povik+lin@cutebit.org>
Wed, 24 Aug 2022 16:07:15 +0000 (18:07 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 25 Aug 2022 12:51:35 +0000 (13:51 +0100)
commit4065f0b25b7b30ba4dd4665deb5305ead1c0db25
tree2fd679821962b5181bbfb323b459a873a07d72c9
parent3df5d0d972893d3c0df5aead8152fe1ad48ef45c
ASoC: apple: mca: Add locking

In DAI ops, accesses to the native cluster (of the DAI), and to data of
clusters related to it by a DPCM frontend-backend link, should have
been synchronized by the 'pcm_mutex' lock at ASoC level.

What is not covered are the 'port_driver' accesses on foreign clusters
to which the current cluster has no a priori relation, so fill in
locking for that. (This should only matter in bizarre configurations of
sharing one MCA peripheral between ASoC cards.)

Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220824160715.95779-5-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/apple/mca.c