diff options
author | Michael Walle <michael@walle.cc> | 2019-11-12 23:36:29 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-11-15 13:00:11 +0100 |
commit | e9149b8c00d25dbaef1aa174fc604bed207e576d (patch) | |
tree | 3d7e1e50dda714798783d5aa95ca7b2d72b2fb54 /sound/soc/codecs/rt5645.c | |
parent | ASoC: Jack: Fix NULL pointer dereference in snd_soc_jack_report (diff) | |
download | linux-e9149b8c00d25dbaef1aa174fc604bed207e576d.tar.xz linux-e9149b8c00d25dbaef1aa174fc604bed207e576d.zip |
ASoC: wm8904: fix regcache handling
The current code assumes that the power is turned off in
SND_SOC_BIAS_OFF. If there are no actual regulator the codec isn't
turned off and the registers are not reset to their default values but
the regcache is still marked as dirty. Thus a value might not be written
to the hardware if it is set to the default value. Do a software reset
before turning off the power to make sure the registers are always reset
to their default states.
Signed-off-by: Michael Walle <michael@walle.cc>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20191112223629.21867-1-michael@walle.cc
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5645.c')
0 files changed, 0 insertions, 0 deletions