* [PATCH 1/2] ASoC: wm_adsp: Remove duplicate info message for DSP RAM ready
@ 2013-12-18 9:25 Charles Keepax
2013-12-18 9:25 ` [PATCH 2/2] ASoC: wm_adsp: Add small delay whilst polling DSP RAM start Charles Keepax
2013-12-18 11:23 ` [PATCH 1/2] ASoC: wm_adsp: Remove duplicate info message for DSP RAM ready Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Charles Keepax @ 2013-12-18 9:25 UTC (permalink / raw)
To: broonie; +Cc: alsa-devel, patches, lgirdwood
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
---
sound/soc/codecs/wm_adsp.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index de47ad7..456784f 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -1489,7 +1489,6 @@ static int wm_adsp2_ena(struct wm_adsp *dsp)
}
adsp_dbg(dsp, "RAM ready after %d polls\n", count);
- adsp_info(dsp, "RAM ready after %d polls\n", count);
return 0;
}
--
1.7.2.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] ASoC: wm_adsp: Add small delay whilst polling DSP RAM start
2013-12-18 9:25 [PATCH 1/2] ASoC: wm_adsp: Remove duplicate info message for DSP RAM ready Charles Keepax
@ 2013-12-18 9:25 ` Charles Keepax
2013-12-18 11:23 ` [PATCH 1/2] ASoC: wm_adsp: Remove duplicate info message for DSP RAM ready Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2013-12-18 9:25 UTC (permalink / raw)
To: broonie; +Cc: alsa-devel, patches, lgirdwood
Some devices are getting very close to the limit whilst polling the RAM
start, this patch adds a small delay to this loop to give a longer
startup timeout.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
---
sound/soc/codecs/wm_adsp.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index 456784f..fb0c678 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -1475,13 +1475,17 @@ static int wm_adsp2_ena(struct wm_adsp *dsp)
return ret;
/* Wait for the RAM to start, should be near instantaneous */
- count = 0;
- do {
+ for (count = 0; count < 10; ++count) {
ret = regmap_read(dsp->regmap, dsp->base + ADSP2_STATUS1,
&val);
if (ret != 0)
return ret;
- } while (!(val & ADSP2_RAM_RDY) && ++count < 10);
+
+ if (val & ADSP2_RAM_RDY)
+ break;
+
+ msleep(1);
+ }
if (!(val & ADSP2_RAM_RDY)) {
adsp_err(dsp, "Failed to start DSP RAM\n");
--
1.7.2.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] ASoC: wm_adsp: Remove duplicate info message for DSP RAM ready
2013-12-18 9:25 [PATCH 1/2] ASoC: wm_adsp: Remove duplicate info message for DSP RAM ready Charles Keepax
2013-12-18 9:25 ` [PATCH 2/2] ASoC: wm_adsp: Add small delay whilst polling DSP RAM start Charles Keepax
@ 2013-12-18 11:23 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2013-12-18 11:23 UTC (permalink / raw)
To: Charles Keepax; +Cc: alsa-devel, patches, lgirdwood
[-- Attachment #1.1: Type: text/plain, Size: 157 bytes --]
On Wed, Dec 18, 2013 at 09:25:48AM +0000, Charles Keepax wrote:
> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Applied both, thanks.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-18 11:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18 9:25 [PATCH 1/2] ASoC: wm_adsp: Remove duplicate info message for DSP RAM ready Charles Keepax
2013-12-18 9:25 ` [PATCH 2/2] ASoC: wm_adsp: Add small delay whilst polling DSP RAM start Charles Keepax
2013-12-18 11:23 ` [PATCH 1/2] ASoC: wm_adsp: Remove duplicate info message for DSP RAM ready Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).