]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv312aic23: unbreak resume
authorEric Bénard <eric@eukrea.com>
Sun, 29 Apr 2012 15:37:57 +0000 (17:37 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 30 Apr 2012 09:06:44 +0000 (10:06 +0100)
commit2fae4896cf2d7f45750d33c74a8e28189b709947
tree88d9fac8a5290e49956dfd7c3624158975755b93
parent727041d014d98a957ab4323fabebd4f27cba212b
ASoC: tlv312aic23: unbreak resume

* commit 6985f43 "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>
Cc: stable@vger.kernel.org
sound/soc/codecs/tlv320aic23.c