ASoC: rt5640: use msleep() for long delays
authorNicholas Mc Guire <hofrat@osadl.org>
Thu, 12 Jan 2017 12:09:41 +0000 (13:09 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 12 Jan 2017 17:20:59 +0000 (17:20 +0000)
commit4a312c9c825adf74c0026c98fed4ab59ce190863
tree8163116fe25cb3a4b63a2d6938b5cc8583bccd46
parent80317c2cb40085a3dcf80015bc39fbac40e2092a
ASoC: rt5640: use msleep() for long delays

ulseep_range() uses hrtimers and provides no advantage over msleep()
for larger delays. Fix up the 70/80ms delays here passing the "min"
value to msleep(). This reduces the load on the hrtimer subsystem.

Link: http://lkml.org/lkml/2017/1/11/377
Fixes: commit 246693ba7b0b ("ASoC: rt5640: change widget sequence for depop")
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5640.c