ASoC: omap-mcbsp: Fix FS polarity for LEFT_J, DSP_A and DSP_B formats
authorJarkko Nikula <jarkko.nikula@bitmer.com>
Fri, 30 Sep 2011 07:55:32 +0000 (10:55 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 30 Sep 2011 11:56:17 +0000 (12:56 +0100)
commit91a18ae8ffc05ffd445c5b40e5ca266888b360ce
tree55d232dd4c530a43a7e6ad751c825c7cf4cdea29
parentf34dafb287a33ffda2f2a122daecedea474a4181
ASoC: omap-mcbsp: Fix FS polarity for LEFT_J, DSP_A and DSP_B formats

Commit 75d9ac4 ("ASoC: Allow DAI formats to be specified in the dai_link")
changed DAI format flag values and we cannot simply invert anymore e.g.
frame-sync with ^= SND_SOC_DAIFMT_NB_IF (which was anyway misuse) as there
is no anymore fixed bit position for bit-clock or frame-sync inversion.

Fix this by relying only on DAI format flag values passed to us and by not
making any assumption on individual bit positions.

Signed-off-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/omap-mcbsp.c