]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: tlv312aic23: unbreak resume
authorEric Bénard <eric@eukrea.com>
Sun, 29 Apr 2012 15:37:57 +0000 (17:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:04 +0000 (09:32 -0700)
commit9e52d84a9ac037d47e8c3f2db9e0a453237966f8
tree17c12ef892e3ebf8571161ae46fbc72d1fccbce5
parent35cdf78c44dc54a6262ebbfc745f46bd3b813f94
ASoC: tlv312aic23: unbreak resume

commit e875c1e3e758447ba81ca450d89434b3b0496d37 upstream.

* commit f9dfbf9 "ASoC: tlv320aic23: convert to soc-cache" leads to
a bug preventing resumeof the codec as regmap expects a 9 bits data
register but 0xFFFF is passed in tlv320aic23_set_bias_level and this
values gets cached preventing any write to the TLV320AIC23_PWR
register as the final value produced by regmap is (register << 9) | value

* this patch solves the problem by only working on the 9 bits the
register contains.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/tlv320aic23.c