提交 4b75e947 编写于 作者: M Mark Brown

ASoC: Error out if we can't determine a suitable WM9081 sysclk

Due to the flexibility of the WM9081 FLL this should never happen
in a real system.
Reported-by: NJaswinder Singh Rajput <jaswinder@kernel.org>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 e465d544
......@@ -707,6 +707,10 @@ static int configure_clock(struct snd_soc_codec *codec)
target > 3000000)
break;
}
if (i == ARRAY_SIZE(clk_sys_rates))
return -EINVAL;
} else if (wm9081->fs) {
for (i = 0; i < ARRAY_SIZE(clk_sys_rates); i++) {
new_sysclk = clk_sys_rates[i].ratio
......@@ -714,6 +718,10 @@ static int configure_clock(struct snd_soc_codec *codec)
if (new_sysclk > 3000000)
break;
}
if (i == ARRAY_SIZE(clk_sys_rates))
return -EINVAL;
} else {
new_sysclk = 12288000;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册