diff options
author | Vijendar Mukunda <Vijendar.Mukunda@amd.com> | 2023-08-23 13:03:36 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-08-23 13:27:16 +0100 |
commit | f3b2f8b7158026e7a0ab67f5e36c195cdb4c1bf8 (patch) | |
tree | 19265b27330de12faefb6ac5248cd7aca311ea45 | |
parent | 60eb816ed850b33f5410b1223c5d4d935a6ceb79 (diff) | |
download | linux-stable-f3b2f8b7158026e7a0ab67f5e36c195cdb4c1bf8.tar.gz linux-stable-f3b2f8b7158026e7a0ab67f5e36c195cdb4c1bf8.tar.bz2 linux-stable-f3b2f8b7158026e7a0ab67f5e36c195cdb4c1bf8.zip |
ASoC: SOF: amd: remove redundant clock mux selection register write
ACP clock mux selection register is already programmed during acp init
sequence.
Remove the redundant register write.
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20230823073340.2829821-4-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sof/amd/acp.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sound/soc/sof/amd/acp.c b/sound/soc/sof/amd/acp.c index ebc985e2aaad..61faae74d637 100644 --- a/sound/soc/sof/amd/acp.c +++ b/sound/soc/sof/amd/acp.c @@ -464,7 +464,6 @@ EXPORT_SYMBOL_NS(amd_sof_acp_suspend, SND_SOC_SOF_AMD_COMMON); int amd_sof_acp_resume(struct snd_sof_dev *sdev) { - const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); int ret; ret = acp_init(sdev); @@ -472,12 +471,7 @@ int amd_sof_acp_resume(struct snd_sof_dev *sdev) dev_err(sdev->dev, "ACP Init failed\n"); return ret; } - - snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->acp_clkmux_sel, ACP_CLOCK_ACLK); - - ret = acp_memory_init(sdev); - - return ret; + return acp_memory_init(sdev); } EXPORT_SYMBOL_NS(amd_sof_acp_resume, SND_SOC_SOF_AMD_COMMON); |