From: Charles Keepax Date: Tue, 13 May 2014 12:45:15 +0000 (+0100) Subject: ASoC: wm8962: Update register CLASS_D_CONTROL_1 to be non-volatile X-Git-Tag: omap-for-v3.16/fixes-against-rc1~177^2~2^2^7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44330ab516c15dda8a1e660eeaf0003f84e43e3f;p=pandora-kernel.git ASoC: wm8962: Update register CLASS_D_CONTROL_1 to be non-volatile The register CLASS_D_CONTROL_1 is marked as volatile because it contains a bit, DAC_MUTE, which is also mirrored in the ADC_DAC_CONTROL_1 register. This causes problems for the "Speaker Switch" control, which will report an error if the CODEC is suspended because it relies on a volatile register. To resolve this issue mark CLASS_D_CONTROL_1 as non-volatile and manually keep the register cache in sync by updating both bits when changing the mute status. Reported-by: Shawn Guo Signed-off-by: Charles Keepax Tested-by: Shawn Guo Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed