提交 1f4fe272 编写于 作者: M Mark Brown

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: NMark Brown <broonie@linaro.org>
Reviewed-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
上级 959e4083
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册