Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f4fe272 authored by Mark Brown's avatar Mark Brown
Browse files

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: default avatarMark Brown <broonie@linaro.org>
Reviewed-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
parent 959e4083
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ 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,
				regmap_write_async(regmap, patch[i].reg,
						   patch[i].def);
		break;
	default: