diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-08-31 12:15:23 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-31 13:18:00 -0400 |
commit | 9d863b88ec371491e926e0828dbe3d36ead0f6f9 (patch) | |
tree | 977345abe3563abd16c54ddf9d703c04f46035d0 /sound/soc | |
parent | d8dfad3876e4386666b759da3c833d62fb8b2267 (diff) |
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: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/ssm2602.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c index f8d30e5f6371..492644e67ace 100644 --- a/sound/soc/codecs/ssm2602.c +++ b/sound/soc/codecs/ssm2602.c | |||
@@ -561,8 +561,9 @@ static int ssm2602_suspend(struct snd_soc_codec *codec) | |||
561 | 561 | ||
562 | static int ssm2602_resume(struct snd_soc_codec *codec) | 562 | static int ssm2602_resume(struct snd_soc_codec *codec) |
563 | { | 563 | { |
564 | snd_soc_cache_sync(codec); | 564 | struct ssm2602_priv *ssm2602 = snd_soc_codec_get_drvdata(codec); |
565 | 565 | ||
566 | regcache_sync(ssm2602->regmap); | ||
566 | ssm2602_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 567 | ssm2602_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
567 | 568 | ||
568 | return 0; | 569 | return 0; |