diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-03-03 14:57:09 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-03-05 16:43:05 +0000 |
commit | 692247196dd845eef02f26bf2959719b82e935c6 (patch) | |
tree | 852b4202b0926d0966935fe54fd6b5d3f36a5f3c /sound/soc/soc-dapm.c | |
parent | 1d24452b5536bd5c0c7721887a38d736b885014f (diff) | |
download | kernel_samsung_smdk4412-692247196dd845eef02f26bf2959719b82e935c6.zip kernel_samsung_smdk4412-692247196dd845eef02f26bf2959719b82e935c6.tar.gz kernel_samsung_smdk4412-692247196dd845eef02f26bf2959719b82e935c6.tar.bz2 |
ASoC: Improve DAPM pop_wait delays
Currently during pop/click debug we're inserting a delay both after
every log message we generate and at explicit points in the sequence,
slowing things down even further than they need to be especially when
many writes get coalesced by the sequence generation code.
Remove the per-printk delay and ensure that we have explicit delays
where we say we want them.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 6c33510..86ded22 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -97,7 +97,6 @@ static void pop_dbg(u32 pop_time, const char *fmt, ...) if (pop_time) { vprintk(fmt, args); - pop_wait(pop_time); } va_end(args); @@ -314,8 +313,8 @@ static int dapm_update_bits(struct snd_soc_dapm_widget *widget) pop_dbg(codec->pop_time, "pop test %s : %s in %d ms\n", widget->name, widget->power ? "on" : "off", codec->pop_time); - snd_soc_write(codec, widget->reg, new); pop_wait(codec->pop_time); + snd_soc_write(codec, widget->reg, new); } pr_debug("reg %x old %x new %x change %d\n", widget->reg, old, new, change); @@ -1075,6 +1074,7 @@ static int dapm_power_widgets(struct snd_soc_codec *codec, int event) pop_dbg(codec->pop_time, "DAPM sequencing finished, waiting %dms\n", codec->pop_time); + pop_wait(codec->pop_time); return 0; } |