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

Commit df3431b7 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: wm8741: Use snd_soc_cache_sync to sync reg_cache with the hardware

parent 3a340104
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -404,15 +404,7 @@ static struct snd_soc_dai_driver wm8741_dai = {
#ifdef CONFIG_PM
static int wm8741_resume(struct snd_soc_codec *codec)
{
	u16 *cache = codec->reg_cache;
	int i;

	/* RESTORE REG Cache */
	for (i = 0; i < WM8741_REGISTER_COUNT; i++) {
		if (cache[i] == wm8741_reg_defaults[i] || WM8741_RESET == i)
			continue;
		snd_soc_write(codec, i, cache[i]);
	}
	snd_soc_cache_sync(codec);
	return 0;
}
#else