diff options
author | Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com> | 2017-01-11 04:32:43 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-11 12:06:33 +0000 |
commit | fc1e65c3a858fe9a454da9e9fd180834ed089cbd (patch) | |
tree | 21e2e3e4523021191984f966ca997748008a43db | |
parent | a5de5b74a50113564a1e0850e2da96c37c35e55d (diff) | |
download | linux-fc1e65c3a858fe9a454da9e9fd180834ed089cbd.tar.bz2 |
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 <harunobu.kurokawa.dn@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/ak4642.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |