diff options
| author | Cezary Rojewski <cezary.rojewski@intel.com> | 2026-03-09 10:16:01 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-11 13:34:09 +0000 |
| commit | b0b49c77bddac75db79f7c2c6ec0b07d61864f2f (patch) | |
| tree | 525a93ad854a1b85152afa6fe4c0f5bcc0dd027c /sound/soc/intel/catpt/core.h | |
| parent | 1f318b96cc84d7c2ab792fcc0bfd42a7ca890681 (diff) | |
| download | linux-next-b0b49c77bddac75db79f7c2c6ec0b07d61864f2f.tar.gz linux-next-b0b49c77bddac75db79f7c2c6ec0b07d61864f2f.zip | |
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>
Diffstat (limited to 'sound/soc/intel/catpt/core.h')
| -rw-r--r-- | sound/soc/intel/catpt/core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/catpt/core.h b/sound/soc/intel/catpt/core.h index df8a5fd95e13..7e479ef89ad0 100644 --- a/sound/soc/intel/catpt/core.h +++ b/sound/soc/intel/catpt/core.h @@ -96,7 +96,7 @@ struct catpt_dev { struct catpt_module_type modules[CATPT_MODULE_COUNT]; struct catpt_ssp_device_format devfmt[CATPT_SSP_COUNT]; struct list_head stream_list; - spinlock_t list_lock; + struct mutex stream_mutex; struct mutex clk_mutex; struct catpt_dx_context dx_ctx; |
