]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c426864667116844bdeef9a6334f529e94e12a6
tree32188642f6503f6b9be38123d0368e8fd7058229
parentb73f4899fa52c08fe84020150a5ec8efaf97de00
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