ASoC: wm5110: Use async writes
authorMark Brown <broonie@linaro.org>
Thu, 12 Dec 2013 00:49:56 +0000 (00:49 +0000)
committerMark Brown <broonie@linaro.org>
Tue, 17 Dec 2013 11:35:07 +0000 (11:35 +0000)
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>
sound/soc/codecs/wm5110.c

index 0e63d8ce533f608133f4212203f2567fb047a212..ebcbe7831e57bc3881f49c5bbd7e00f3813c9a7c 100644 (file)
@@ -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: