aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2017-01-12 05:47:45 -0500
committerMark Brown <broonie@kernel.org>2017-01-12 12:23:29 -0500
commit969f751036fd3cbe15e84aa56d055e54ddb96e7c (patch)
tree3b1be41a9a8e619576d991d9445515175f852e3d
parent4281fcc02ed9f902dfa52d3635ac7f04b1a7341f (diff)
ASoC: rt5660: use msleep() for long delay
ulseep_range() uses hrtimers and provides no advantage over msleep() for larger delays. For this large delay msleep() is preferable. Link: http://lkml.org/lkml/2017/1/11/377 Fixes: commit 2b26dd4c1fc5 ("ASoC: rt5660: add rt5660 codec driver") Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/rt5660.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5660.c b/sound/soc/codecs/rt5660.c
index 296b7b0ca4f3..c93490d77f2a 100644
--- a/sound/soc/codecs/rt5660.c
+++ b/sound/soc/codecs/rt5660.c
@@ -1152,7 +1152,7 @@ static int rt5660_resume(struct snd_soc_codec *codec)
1152 struct rt5660_priv *rt5660 = snd_soc_codec_get_drvdata(codec); 1152 struct rt5660_priv *rt5660 = snd_soc_codec_get_drvdata(codec);
1153 1153
1154 if (rt5660->pdata.poweroff_codec_in_suspend) 1154 if (rt5660->pdata.poweroff_codec_in_suspend)
1155 usleep_range(350000, 400000); 1155 msleep(350);
1156 1156
1157 regcache_cache_only(rt5660->regmap, false); 1157 regcache_cache_only(rt5660->regmap, false);
1158 regcache_sync(rt5660->regmap); 1158 regcache_sync(rt5660->regmap);