aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8997.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-12-11 19:50:04 -0500
committerMark Brown <broonie@linaro.org>2013-12-17 06:35:11 -0500
commit1f4fe272f068813377845a959cab5ce786a155bf (patch)
tree9a88ae5d1848daa0c725f6919d8ad2ec9f973f7d /sound/soc/codecs/wm8997.c
parent959e4083cd9c43fb3e818984926f9c590ee0aa2b (diff)
ASoC: wm8997: 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> Reviewed-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8997.c')
-rw-r--r--sound/soc/codecs/wm8997.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c
index 1392bb3c9254..555115ee2159 100644
--- a/sound/soc/codecs/wm8997.c
+++ b/sound/soc/codecs/wm8997.c
@@ -103,8 +103,8 @@ static int wm8997_sysclk_ev(struct snd_soc_dapm_widget *w,
103 case SND_SOC_DAPM_POST_PMU: 103 case SND_SOC_DAPM_POST_PMU:
104 if (patch) 104 if (patch)
105 for (i = 0; i < patch_size; i++) 105 for (i = 0; i < patch_size; i++)
106 regmap_write(regmap, patch[i].reg, 106 regmap_write_async(regmap, patch[i].reg,
107 patch[i].def); 107 patch[i].def);
108 break; 108 break;
109 default: 109 default:
110 break; 110 break;