diff options
author | Nicolin Chen <b42378@freescale.com> | 2013-09-03 12:21:47 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2013-10-30 09:55:27 +0800 |
commit | f85a96590fd19086c188e78093fbf73f6e6b16a4 (patch) | |
tree | 81233643d40382bd2b79311864ef534e8632d135 /sound/soc/codecs | |
parent | bbf349ec946ee888fdf300afaf8dd6bf11764107 (diff) |
ENGR00277715-1 ASoC: codec: Enable cache-only before power down in probe()
We need to enable cache-only for regcache before wm8962 being power-down.
Otherwise some configurations via amixer might be invalid before one stream,
playback or record, actually happens.
Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/wm8962.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 38d904317f7f..6c06febb9b3a 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3755,6 +3755,9 @@ static int wm8962_i2c_probe(struct i2c_client *i2c, if (ret < 0) goto err_enable; + /* The cache-only should be turned on before we power down the codec */ + regcache_cache_only(wm8962->regmap, true); + /* The drivers should power up as needed */ regulator_bulk_disable(ARRAY_SIZE(wm8962->supplies), wm8962->supplies); |