diff options
author | Mark Brown <broonie@linaro.org> | 2013-12-11 19:49:56 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-17 06:35:07 -0500 |
commit | 959e4083cd9c43fb3e818984926f9c590ee0aa2b (patch) | |
tree | 7cd64bddca31f63ef1b5fbd76ea78500b8999178 | |
parent | bd4893492bfc6081da55e445d200c1a832770a06 (diff) |
ASoC: wm5110: Use async writes
When writing the patch write to the device asynchronously, allowing better
performance when used with a bus like SPI which supports this by
minimising the need to context switch back to the driver to get the
next bit of data.
Signed-off-by: Mark Brown <broonie@linaro.org>
Tested-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/codecs/wm5110.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm5110.c b/sound/soc/codecs/wm5110.c index 0e63d8ce533f..ebcbe7831e57 100644 --- a/sound/soc/codecs/wm5110.c +++ b/sound/soc/codecs/wm5110.c | |||
@@ -105,8 +105,8 @@ static int wm5110_sysclk_ev(struct snd_soc_dapm_widget *w, | |||
105 | case SND_SOC_DAPM_POST_PMU: | 105 | case SND_SOC_DAPM_POST_PMU: |
106 | if (patch) | 106 | if (patch) |
107 | for (i = 0; i < patch_size; i++) | 107 | for (i = 0; i < patch_size; i++) |
108 | regmap_write(regmap, patch[i].reg, | 108 | regmap_write_async(regmap, patch[i].reg, |
109 | patch[i].def); | 109 | patch[i].def); |
110 | break; | 110 | break; |
111 | 111 | ||
112 | default: | 112 | default: |