diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2016-09-26 05:15:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-26 12:03:53 -0400 |
commit | 1fa96f3fdad7cef5d043a502682580d2bc3d5ace (patch) | |
tree | d5368da1fead65e3fd7f2c7fda8ebbd786090860 | |
parent | 5ca7e170e331781fe71acb4919667993bb9fbab6 (diff) |
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>
-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 24485ec5866f..4188c3763bc3 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) | |||
2237 | if (val & ADSP2_RAM_RDY) | 2237 | if (val & ADSP2_RAM_RDY) |
2238 | break; | 2238 | break; |
2239 | 2239 | ||
2240 | msleep(1); | 2240 | usleep_range(250, 500); |
2241 | } | 2241 | } |
2242 | 2242 | ||
2243 | if (!(val & ADSP2_RAM_RDY)) { | 2243 | if (!(val & ADSP2_RAM_RDY)) { |