]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Aug 2011 04:58:33 +0000 (21:58 -0700)
commitcad9b0afb809af7e7710dd8d3cf48e79eab5e276
tree194a1f2c8b17c110f777d585b704c1631bfadcfe
parent6d1c18d3afe7b182f09402d41f82206544d9c3ff
ASoC: davinci: fix codec start and stop functions

commit 3012f43eaf7592d8121426918e43e3b5db013aff upstream.

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