ASoC: MAX9877: fix write operation for register
authorJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 23 Jul 2009 08:33:17 +0000 (17:33 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 23 Jul 2009 10:08:30 +0000 (11:08 +0100)
commita7569afa8b79ca9272b0d7544335bc05b5b721d6
treefdc41caf35e146da60c65714826932737d9db5e6
parent459dc35233c88d9eb7c5d0e6c086122751e64750
ASoC: MAX9877: fix write operation for register

The MAX9877 needs an address of start register when we write values to
registers through i2c_master_send(), but the code for this was missed in
max9877_write_regs().

If the value of control is 0 in the max9877_set_out_mode(), the value is
not increased to 1, but actually the value to write to the register
should be 1.
And the register bits for out_mode and osc_mode should be cleared before
writing.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/max9877.c