From: Harunobu Kurokawa Date: Wed, 11 Jan 2017 04:32:43 +0000 (+0000) Subject: ASoC: ak4642: Replace mdelay function to msleep X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc1e65c3a858fe9a454da9e9fd180834ed089cbd;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: ak4642: Replace mdelay function to msleep Replace mdelay to msleep to avoid busy loop on ak4642_lout_event(). Otherwise, sometimes playback doesn't work correctly when pulseaudio was used. Signed-off-by: Harunobu Kurokawa Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c index 2609f95b7d19..23ab9646c351 100644 --- a/sound/soc/codecs/ak4642.c +++ b/sound/soc/codecs/ak4642.c @@ -189,7 +189,7 @@ static int ak4642_lout_event(struct snd_soc_dapm_widget *w, case SND_SOC_DAPM_POST_PMU: case SND_SOC_DAPM_POST_PMD: /* Power save mode OFF */ - mdelay(300); + msleep(300); snd_soc_update_bits(codec, SG_SL2, LOPS, 0); break; }