ASoC: Do not write to invalid registers on the wm9712.
authorEric Millbrandt <emillbrandt@dekaresearch.com>
Tue, 22 Dec 2009 15:13:24 +0000 (10:13 -0500)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 23 Dec 2009 15:20:56 +0000 (15:20 +0000)
commit48e3cbb3f67a27d9c2db075f3d0f700246c40caa
tree32188642f6503f6b9be38123d0368e8fd7058229
parent1628af5adf64cc2960bce81009f119de822f876e
ASoC: Do not write to invalid registers on the wm9712.

This patch fixes a bug where "virtual" registers were being written to the ac97
bus.  This was causing unrelated registers to become corrupted (headphone 0x04,
touchscreen 0x78, etc).

This patch duplicates protection that was included in the wm9713 driver.

Signed-off-by: Eric Millbrandt <emillbrandt@dekaresearch.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
sound/soc/codecs/wm9712.c