ASoC: ak4642: Replace mdelay function to msleep
authorHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Wed, 11 Jan 2017 04:32:43 +0000 (04:32 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 11 Jan 2017 12:06:33 +0000 (12:06 +0000)
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>
sound/soc/codecs/ak4642.c

index 2609f95b7d197946c5449610c28287920f6b6c10..23ab9646c3514c1c21adbd0166e93eb4eab4b360 100644 (file)
@@ -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;
        }