ASoC: wm8962: set ALC2 as non-volatile register
authorJiada Wang <jiada_wang@mentor.com>
Fri, 23 Oct 2015 05:18:48 +0000 (14:18 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 28 Oct 2015 00:21:06 +0000 (09:21 +0900)
commit0b170f7acd2ab1ca0771b933493b9241706117b4
tree7397fe68e263ba6ff24d2911e53265ddf0a9a255
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ASoC: wm8962: set ALC2 as non-volatile register

Previously ALC2 register is set as a volatile register, declare
it as one of ALC Coefficients register together with other non-volatile
registers will cause issue, in case wm8962 has enter suspend mode,
and cache_only flag is set, any attempt to read from ALC2 will fail.

Because the 5 status bits in ALC2 aren't used anywhere nor are useful
to end user, so this patch removes ALC2 register from volatile
register list to make ALC2 be possible to be accessed when cache_only
flag is set.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8962.c