]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f828aac7622ccedccfdadd80ac3b07873ef83f6
tree7397fe68e263ba6ff24d2911e53265ddf0a9a255
parent48fdd7874f07dfb3a661edca7ea1d4807bb4ccb0
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