>From d81f1906f08bb6d3aa45a0403adc1d36754c13cc Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 1 Nov 2018 15:47:42 +0100 Subject: [PATCH] ASoC: intel: cht_bsw_max98090_ti: Sleep a bit after enabling the mclk Sleep a bit after enabling the mclk to give the PLL some time to lock, this fixes the log showing a whole bunch of: kernel: max98090 i2c-193C9890:00: PLL unlocked errors. Signed-off-by: Hans de Goede --- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/intel/boards/cht_bsw_max98090_ti.c b/sound/soc/intel/boards/cht_bsw_max98090_ti.c index 9d9f6e41d81c..f3bc0bfdfe08 100644 --- a/sound/soc/intel/boards/cht_bsw_max98090_ti.c +++ b/sound/soc/intel/boards/cht_bsw_max98090_ti.c @@ -19,6 +19,7 @@ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ +#include #include #include #include @@ -66,6 +67,7 @@ static int platform_clock_control(struct snd_soc_dapm_widget *w, "could not configure MCLK state"); return ret; } + usleep_range(5000, 10000); } else { clk_disable_unprepare(ctx->mclk); } -- 2.19.0