]> 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)
commitb67972991289df3b764450cc9562bb6cf87eb5b8
tree0510db13d0c5efae3a46bb638a39b0b257fcdc1c
parentbdaaa18a6a812d359da50005afa606785ebe4088
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