ASoC: DaVinci: Correct McASP FIFO initialization
authorChaithrika U S <chaithrika@ti.com>
Wed, 23 Sep 2009 14:12:08 +0000 (10:12 -0400)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 23 Sep 2009 17:37:08 +0000 (10:37 -0700)
commit539d3d8cbe5cf7597d4c4c4428aec242f9ea5185
tree503d1415bf4874484b4bc08633266a7f203b9e54
parent92e2a6f68219f8d4c862b1f29c653b05639e4c06
ASoC: DaVinci: Correct McASP FIFO initialization

McASP write FIFO registers should be modified for playback and read FIFO
registers for capture. Check the PCM mode before manipulating the
FIFO registers. Currently, irrespective of playback/capture both the
FIFOs are enabled or disbaled. This resulted in errors in audio loopback
mode.

Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-mcasp.c