diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2016-09-26 10:15:22 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-26 09:03:53 -0700 |
commit | 1fa96f3fdad7cef5d043a502682580d2bc3d5ace (patch) | |
tree | d5368da1fead65e3fd7f2c7fda8ebbd786090860 /sound/soc/codecs/wm_adsp.c | |
parent | 5ca7e170e331781fe71acb4919667993bb9fbab6 (diff) | |
download | op-kernel-dev-1fa96f3fdad7cef5d043a502682580d2bc3d5ace.zip op-kernel-dev-1fa96f3fdad7cef5d043a502682580d2bc3d5ace.tar.gz |
ASoC: wm_adsp: Use usleep_range for short delay
Replace the 1ms msleep in wm_adsp2_ena with a usleep_range, as per
normal guidance on delay functions. Also tighten up the delay a little
as 1ms was quite generous.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.c')
-rw-r--r-- | sound/soc/codecs/wm_adsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index 24485ec..4188c37 100644 --- a/sound/soc/codecs/wm_adsp.c +++ b/sound/soc/codecs/wm_adsp.c @@ -2237,7 +2237,7 @@ static int wm_adsp2_ena(struct wm_adsp *dsp) if (val & ADSP2_RAM_RDY) break; - msleep(1); + usleep_range(250, 500); } if (!(val & ADSP2_RAM_RDY)) { |