ASoC: Do not write to invalid registers on the wm9712.
commit637cd43cefe67a93f58a5147762ad66a556d0483
authorEric Millbrandt <emillbrandt@dekaresearch.com>
Tue, 22 Dec 2009 15:13:24 +0000 (22 10:13 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 22:26:17 +0000 (6 14:26 -0800)
treed4c733047e2d69a898f60797b59c492f988e5369
parentf3b8a699214d28f17c1ef8fd3c71cba7c33c3889
ASoC: Do not write to invalid registers on the wm9712.

commit 48e3cbb3f67a27d9c2db075f3d0f700246c40caa upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/soc/codecs/wm9712.c