diff options
author | Vijendar Mukunda <Vijendar.Mukunda@amd.com> | 2023-08-23 13:03:37 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-08-23 13:27:17 +0100 |
commit | 0d9e4cf5b66e0ffca3d8cf8e9a111d4793877afe (patch) | |
tree | 35c37a2180e89d8346f57189c5c0adf2664d73a7 | |
parent | f3b2f8b7158026e7a0ab67f5e36c195cdb4c1bf8 (diff) | |
download | linux-stable-0d9e4cf5b66e0ffca3d8cf8e9a111d4793877afe.tar.gz linux-stable-0d9e4cf5b66e0ffca3d8cf8e9a111d4793877afe.tar.bz2 linux-stable-0d9e4cf5b66e0ffca3d8cf8e9a111d4793877afe.zip |
ASoC: SOF: amd: add conditional check for acp_clkmux_sel register
Few AMD platforms require ACP ACLK as clock source.
Add conditional check for clock mux selection register for
switching between internal clock and ACP ACLK.
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20230823073340.2829821-5-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sof/amd/acp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/sof/amd/acp.c b/sound/soc/sof/amd/acp.c index 61faae74d637..eceba9b794ab 100644 --- a/sound/soc/sof/amd/acp.c +++ b/sound/soc/sof/amd/acp.c @@ -423,7 +423,9 @@ static int acp_reset(struct snd_sof_dev *sdev) if (ret < 0) dev_err(sdev->dev, "timeout in releasing reset\n"); - snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->acp_clkmux_sel, ACP_CLOCK_ACLK); + if (desc->acp_clkmux_sel) + snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->acp_clkmux_sel, ACP_CLOCK_ACLK); + if (desc->ext_intr_enb) snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->ext_intr_enb, 0x01); |