From: Mark Brown Date: Thu, 12 Dec 2013 00:49:56 +0000 (+0000) Subject: ASoC: wm5110: Use async writes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=959e4083cd9c43fb3e818984926f9c590ee0aa2b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Tested-by: Charles Keepax Reviewed-by: Charles Keepax --- 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, case SND_SOC_DAPM_POST_PMU: if (patch) for (i = 0; i < patch_size; i++) - regmap_write(regmap, patch[i].reg, - patch[i].def); + regmap_write_async(regmap, patch[i].reg, + patch[i].def); break; default: