Commit d9c5996a authored by Oder Chiou's avatar Oder Chiou Committed by Mark Brown

ASoC: rt5640: Remove the sysclk and sysclk_src checking

Remove the sysclk and sysclk_src checking in the function set_sysclk() to
prevent the PLL power off. It is not getting re-programmed during
subsequent runs after the first run (in BIAS_OFF stage).
Signed-off-by: default avatarOder Chiou <oder_chiou@realtek.com>
Link: https://lore.kernel.org/r/20220210071900.17287-1-oder_chiou@realtek.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8be90641
...@@ -1839,9 +1839,6 @@ static int rt5640_set_dai_sysclk(struct snd_soc_dai *dai, ...@@ -1839,9 +1839,6 @@ static int rt5640_set_dai_sysclk(struct snd_soc_dai *dai,
unsigned int reg_val = 0; unsigned int reg_val = 0;
unsigned int pll_bit = 0; unsigned int pll_bit = 0;
if (freq == rt5640->sysclk && clk_id == rt5640->sysclk_src)
return 0;
switch (clk_id) { switch (clk_id) {
case RT5640_SCLK_S_MCLK: case RT5640_SCLK_S_MCLK:
reg_val |= RT5640_SCLK_SRC_MCLK; reg_val |= RT5640_SCLK_SRC_MCLK;
......
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