Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Venkata Prasad Potturu and committed by
Mark Brown
1d565de8 4d0e8bdf

+7
+7
sound/soc/amd/acp/acp-mach-common.c
··· 505 505 506 506 clk_set_rate(drvdata->wclk, srate); 507 507 clk_set_rate(drvdata->bclk, srate * ch * format); 508 + if (!drvdata->soc_mclk) { 509 + ret = acp_clk_enable(drvdata, srate, ch * format); 510 + if (ret < 0) { 511 + dev_err(rtd->card->dev, "Failed to enable HS clk: %d\n", ret); 512 + return ret; 513 + } 514 + } 508 515 509 516 return 0; 510 517 }