codecs/tlv320aic23: fix bias management for suspend/resume
authorEric Bénard <eric@eukrea.com>
Sat, 19 Jun 2010 17:33:39 +0000 (19:33 +0200)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 23 Jun 2010 10:28:53 +0000 (11:28 +0100)
commit3d5a4516238ff1da81f5c38a7ddd87127487c8ca
tree2b507b262401178e63223c7b74857875eb9feebb
parent4b94dba029887effd8675164e782cb12889668b1
codecs/tlv320aic23: fix bias management for suspend/resume

in tlv320aic23_set_bias_level, for the case SND_SOC_BIAS_ON, the
comment says "vref/mid, osc on, dac unmute" but the code doesn't
clear the corresponding bits, thus when resuming, several bits are
not cleared preventing the codec from working.

in tlv320aic23_suspend, clearing the active register is not needed
as it will be done by tlv320aic23_set_bias_level, when setting
bias to SND_SOC_BIAS_OFF

Signed-off-by: Eric Bénard <eric@eukrea.com>
Cc: broonie@opensource.wolfsonmicro.com
Cc: anuj.aggarwal@ti.com
Cc: lrg@slimlogic.co.uk
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/tlv320aic23.c