Skip to content

Commit 347ecf2

Browse files
TE-N-ShengjiuWangbroonie
authored andcommitted
ASoC: fsl_xcvr: refine the requested phy clock frequency
As the input phy clock frequency will divided by 2 by default on i.MX8MP with the implementation of clk-imx8mp-audiomix driver, So the requested frequency need to be updated. The relation of phy clock is: sai_pll_ref_sel sai_pll sai_pll_bypass sai_pll_out sai_pll_out_div2 earc_phy_cg Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com> Link: https://lore.kernel.org/r/1700702093-8008-1-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 505c832 commit 347ecf2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/fsl/fsl_xcvr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static int fsl_xcvr_en_aud_pll(struct fsl_xcvr *xcvr, u32 freq)
358358
struct device *dev = &xcvr->pdev->dev;
359359
int ret;
360360

361-
freq = xcvr->soc_data->spdif_only ? freq / 10 : freq;
361+
freq = xcvr->soc_data->spdif_only ? freq / 5 : freq;
362362
clk_disable_unprepare(xcvr->phy_clk);
363363
ret = clk_set_rate(xcvr->phy_clk, freq);
364364
if (ret < 0) {
@@ -409,7 +409,7 @@ static int fsl_xcvr_prepare(struct snd_pcm_substream *substream,
409409
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
410410
u32 m_ctl = 0, v_ctl = 0;
411411
u32 r = substream->runtime->rate, ch = substream->runtime->channels;
412-
u32 fout = 32 * r * ch * 10 * 2;
412+
u32 fout = 32 * r * ch * 10;
413413
int ret = 0;
414414

415415
switch (xcvr->mode) {

0 commit comments

Comments
 (0)