]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb359f79b78602e218aa869332bbbf941d22f3b20
tree2fd679821962b5181bbfb323b459a873a07d72c9
parentc4b2b8cc0642d90ac4bbb45850f2487afc37b5f8
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