diff options
author | Venkata Prasad Potturu <venkataprasad.potturu@amd.com> | 2024-01-18 15:30:19 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-01-22 16:31:10 +0100 |
commit | 1d565de8d53cfa823576abac84e82ab1561f04eb (patch) | |
tree | ef05d135896300ef46a803be54701840dc2294b4 /sound/soc | |
parent | ASoC: codecs: wcd938x: fix headphones volume controls (diff) | |
download | linux-1d565de8d53cfa823576abac84e82ab1561f04eb.tar.xz linux-1d565de8d53cfa823576abac84e82ab1561f04eb.zip |
ASoC: amd: acp: Enable rt5682s clocks in acp slave mode
Set and enable rt5682s codec bclk and lrclk rates when
acp is in slave mode.
Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://msgid.link/r/20240118143023.1903984-1-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/amd/acp/acp-mach-common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/amd/acp/acp-mach-common.c b/sound/soc/amd/acp/acp-mach-common.c index c90ec3419247..a224043ccd42 100644 --- a/sound/soc/amd/acp/acp-mach-common.c +++ b/sound/soc/amd/acp/acp-mach-common.c @@ -505,6 +505,13 @@ static int acp_card_rt5682s_hw_params(struct snd_pcm_substream *substream, clk_set_rate(drvdata->wclk, srate); clk_set_rate(drvdata->bclk, srate * ch * format); + if (!drvdata->soc_mclk) { + ret = acp_clk_enable(drvdata, srate, ch * format); + if (ret < 0) { + dev_err(rtd->card->dev, "Failed to enable HS clk: %d\n", ret); + return ret; + } + } return 0; } |