Commit 6a2f1ee1 authored by Mark Brown's avatar Mark Brown

ASoC: Don't restart unconfigured WM8994 FLLs

If the FLL is not configured attempting to resume it will produce a
warning message so skip the resume.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 6adb26bd
...@@ -3548,6 +3548,9 @@ static int wm8994_resume(struct platform_device *pdev) ...@@ -3548,6 +3548,9 @@ static int wm8994_resume(struct platform_device *pdev)
wm8994_set_bias_level(codec, SND_SOC_BIAS_STANDBY); wm8994_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
for (i = 0; i < ARRAY_SIZE(wm8994->fll); i++) { for (i = 0; i < ARRAY_SIZE(wm8994->fll); i++) {
if (!wm8994->fll_suspend[i].out)
continue;
ret = wm8994_set_fll(&codec->dai[0], i + 1, ret = wm8994_set_fll(&codec->dai[0], i + 1,
wm8994->fll_suspend[i].src, wm8994->fll_suspend[i].src,
wm8994->fll_suspend[i].in, wm8994->fll_suspend[i].in,
......
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