ASoC: ti: davinci-mcasp: Add support for RIGHT_J format
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 25 Jul 2019 08:34:11 +0000 (11:34 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 25 Jul 2019 12:58:17 +0000 (13:58 +0100)
commit816fe206138a7e3895c3a74fbd326a51df003f70
tree867f6e7c287157827cc6f728c46ff9b65ebaf28b
parentf2c8b57014038ae064a0f918f939af510f0aed02
ASoC: ti: davinci-mcasp: Add support for RIGHT_J format

The formater unit's rotation needs to be programmed differently for right
aligned bus format to have the data moved to the correct place.

Take the opportunity and simplify the formater unit setup code.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20190725083411.7211-1-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/davinci-mcasp.c