ASoC: wm8962: Turn on regcache_cache_only before disabling regulator
authorNicolin Chen <b42378@freescale.com>
Thu, 14 Nov 2013 03:59:21 +0000 (11:59 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 14 Nov 2013 17:04:21 +0000 (17:04 +0000)
commit50bfcf2df2fadf77e143d6099150e6fa7ef4d78c
treea19b09d003ad8e2364c0280556cada92364ddce2
parent9645083ca5ef365b7b750cf219bb20b61bb925f8
ASoC: wm8962: Turn on regcache_cache_only before disabling regulator

It's safer to turn on regcache_cache_only before disabling regulator since
the driver will turn off the regcache_cache_only after enabling regulator.

If we remain cache_only false, some command like 'amixer cset' would get
failure if being run before wm8962_resume().

Signed-off-by: Nicolin Chen <b42378@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/wm8962.c