projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ca7e17
)
ASoC: wm_adsp: Use usleep_range for short delay
author
Charles Keepax
<
[email protected]
>
Mon, 26 Sep 2016 09:15:22 +0000
(10:15 +0100)
committer
Mark Brown
<
[email protected]
>
Mon, 26 Sep 2016 16:03:53 +0000
(09:03 -0700)
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 <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/wm_adsp.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm_adsp.c
b/sound/soc/codecs/wm_adsp.c
index 24485ec5866fe86ba93bad9b54cd636fde9d82e1..4188c3763bc35725a19736b102d045bdc552c212 100644
(file)
--- 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)) {