[alsa-devel] [PATCH] ASoC: wm8904: fix regcache handling

Charles Keepax ckeepax at opensource.cirrus.com
Wed Nov 13 09:25:15 CET 2019


On Tue, Nov 12, 2019 at 11:36:29PM +0100, Michael Walle wrote:
> 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 at walle.cc>
> ---

Acked-by: Charles Keepax <ckeepax at opensource.cirrus.com>

Thanks,
Charles


More information about the Alsa-devel mailing list