forked from Minki/linux
ASoC: Only restore non-default registers for WM8961
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
e0fb28e079
commit
10505634bf
@ -1022,6 +1022,9 @@ static int wm8961_resume(struct platform_device *pdev)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < codec->reg_cache_size; i++) {
|
for (i = 0; i < codec->reg_cache_size; i++) {
|
||||||
|
if (reg_cache[i] == wm8961_reg_defaults[i])
|
||||||
|
continue;
|
||||||
|
|
||||||
if (i == WM8961_SOFTWARE_RESET)
|
if (i == WM8961_SOFTWARE_RESET)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user