diff options
author | Vijendar Mukunda <Vijendar.Mukunda@amd.com> | 2023-01-04 08:54:30 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-01-05 14:15:33 +0300 |
commit | 45aa83cb93885d406c178498623b01cf128ca233 (patch) | |
tree | 0b8fb85929ede4c0f0e9a74bf30ff5482e15e7a6 /sound/soc/amd/ps/acp63.h | |
parent | f763fb2fc93065d33f17fe9c5adeac8dec7713dc (diff) | |
download | linux-45aa83cb93885d406c178498623b01cf128ca233.tar.xz |
ASoC: amd: ps: use acp_lock to protect common registers in pdm driver
Retrieve acp_lock mutex as platform data and use it for protecting
ACP common registers access in acp pdm driver.
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20230104055435.321327-2-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 47854280dd4b..e0160cbf5447 100644 --- a/sound/soc/amd/ps/acp63.h +++ b/sound/soc/amd/ps/acp63.h @@ -88,6 +88,7 @@ struct pdm_stream_instance { struct pdm_dev_data { u32 pdm_irq; void __iomem *acp63_base; + struct mutex *acp_lock; struct snd_pcm_substream *capture_stream; }; |