]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cirrus: i2s: Fix {TX|RX}LinCtrlData setup
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>
Sat, 28 Apr 2018 20:51:39 +0000 (22:51 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 1 May 2018 20:55:35 +0000 (05:55 +0900)
commite30ba7c8bf77136963223fe26a4591c5d42db6f4
tree0510db13d0c5efae3a46bb638a39b0b257fcdc1c
parent0fd8e879e26e38e6e9024ae7bc5faad501245125
ASoC: cirrus: i2s: Fix {TX|RX}LinCtrlData setup

According to "EP93xx User’s Guide", I2STXLinCtrlData and I2SRXLinCtrlData
registers actually have different format. The only currently used bit
(Left_Right_Justify) has different position. Fix this and simplify the
whole setup taking into account the fact that both registers have zero
default value.

The practical effect of the above is repaired SND_SOC_DAIFMT_RIGHT_J
support (currently unused).

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/cirrus/ep93xx-i2s.c