Commit 19ab0f00 authored by derek.fang's avatar derek.fang Committed by Mark Brown

ASoC: rt5682: Let dai clks be registered whether mclk exists or not

According to ideal rt5682 CCF, the root clk is mclk.
But in some platforms, mclk is not exported to CCF.
In this condition, rt5682_register_dai_clks will not be called.
This patch lets dai clks could be registered whether mclk exists or not.
Signed-off-by: default avatarderek.fang <derek.fang@realtek.com>
Link: https://lore.kernel.org/r/1591938925-1070-5-git-send-email-derek.fang@realtek.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b287a6d9
...@@ -2829,12 +2829,13 @@ static int rt5682_probe(struct snd_soc_component *component) ...@@ -2829,12 +2829,13 @@ static int rt5682_probe(struct snd_soc_component *component)
return ret; return ret;
} }
rt5682->mclk = NULL; rt5682->mclk = NULL;
} else {
/* Register CCF DAI clock control */
ret = rt5682_register_dai_clks(component);
if (ret)
return ret;
} }
/* Register CCF DAI clock control */
ret = rt5682_register_dai_clks(component);
if (ret)
return ret;
/* Initial setup for CCF */ /* Initial setup for CCF */
rt5682->lrck[RT5682_AIF1] = CLK_48; rt5682->lrck[RT5682_AIF1] = CLK_48;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment