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

Commit 9d863b88 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown
Browse files

ASoC: ssm2602: Fix cache sync



The ssm2602 uses regmap for caching not soc-cache, so we need to use
regcache_sync() instead of snd_soc_cache_sync().

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent d8dfad38
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -561,8 +561,9 @@ static int ssm2602_suspend(struct snd_soc_codec *codec)

static int ssm2602_resume(struct snd_soc_codec *codec)
{
	snd_soc_cache_sync(codec);
	struct ssm2602_priv *ssm2602 = snd_soc_codec_get_drvdata(codec);

	regcache_sync(ssm2602->regmap);
	ssm2602_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

	return 0;