ASoC: davinci: fix codec start and stop functions
authorRajashekhara, Sudhakar <sudhakar.raj@ti.com>
Wed, 20 Jul 2011 12:06:04 +0000 (17:36 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 20 Jul 2011 19:51:23 +0000 (20:51 +0100)
commit3012f43eaf7592d8121426918e43e3b5db013aff
tree558d96ee81c9d086d0009179903cccb5aa852e8e
parentc219c80929ca942c38334aad38b7582aed4e038e
ASoC: davinci: fix codec start and stop functions

According to DM365 voice codec data sheet at [1], before starting
recording or playback, ADC/DAC modules should follow a reset and
enable cycle. Writing a 1 to the ADC/DAC bit in the register resets
the module and clearing the bit to 0 will enable the module. But the
driver seems to be doing the reverse of it.

[1] http://focus.ti.com/lit/ug/sprufi9b/sprufi9b.pdf

Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
sound/soc/davinci/davinci-vcif.c