diff options
author | Vijendar Mukunda <Vijendar.Mukunda@amd.com> | 2023-01-04 08:54:29 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-01-05 14:15:32 +0300 |
commit | f763fb2fc93065d33f17fe9c5adeac8dec7713dc (patch) | |
tree | b89a6b933c5358a25e51a2a06cc4f437eeca5bc8 /sound/soc/amd/ps/acp63.h | |
parent | 892dbe0ecf658fd23e0a7255fca26a216cf54f96 (diff) | |
download | linux-f763fb2fc93065d33f17fe9c5adeac8dec7713dc.tar.xz |
ASoC: amd: ps: add mutex lock for accessing common registers
Add mutex lock for accessing ACP common registers across different
modules.
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20230104055435.321327-1-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/ps/acp63.h')
-rw-r--r-- | sound/soc/amd/ps/acp63.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/amd/ps/acp63.h b/sound/soc/amd/ps/acp63.h index 8f024cb309c9..47854280dd4b 100644 --- a/sound/soc/amd/ps/acp63.h +++ b/sound/soc/amd/ps/acp63.h @@ -106,6 +106,7 @@ struct acp63_dev_data { struct resource *res; bool acp63_audio_mode; struct platform_device *pdev[ACP63_DEVS]; + struct mutex acp_lock; /* protect shared registers */ u16 pdev_mask; u16 pdev_count; u16 pdm_dev_index; |