]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: Intel: catpt: Synchronize stream access
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 9 Mar 2026 09:16:01 +0000 (10:16 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 11 Mar 2026 13:34:09 +0000 (13:34 +0000)
commitb0b49c77bddac75db79f7c2c6ec0b07d61864f2f
tree525a93ad854a1b85152afa6fe4c0f5bcc0dd027c
parent1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
ASoC: Intel: catpt: Synchronize stream access

Streams may have individual controls assigned to them e.g.: volume
control in case of offload streams.

If such a stream is running and simultaneously its controls are being
manipulated, both processes are touching the exact same descriptors -
access to these must be synchronized. Replace spinlock with mutex as
IPCs are non-atomic operations and add proper locking for all
->stream_list users.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20260309091605.896307-2-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/catpt/core.h
sound/soc/intel/catpt/device.c
sound/soc/intel/catpt/ipc.c
sound/soc/intel/catpt/loader.c
sound/soc/intel/catpt/pcm.c