From: Mark Brown Date: Thu, 12 Dec 2013 00:50:04 +0000 (+0000) Subject: ASoC: wm8997: Use async writes X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1f4fe272f068813377845a959cab5ce786a155bf;p=linux-beck.git 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 Reviewed-by: Charles Keepax --- 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, 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: break;