]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: fsl-sai: using 'lsb-first' property instead of 'big-endian-data'.
authorXiubo Li <Li.Xiubo@freescale.com>
Fri, 29 Aug 2014 07:12:12 +0000 (15:12 +0800)
committerZidan Wang <zidan.wang@freescale.com>
Fri, 16 Jan 2015 11:30:26 +0000 (19:30 +0800)
commit38b4be35c0c06a0d929d89d86985296b3ec38519
tree04728b072bcd95cde1dcecd81e9892e180e57e48
parent63fca0f2d426d703206a83e5016e99922d146ea4
ASoC: fsl-sai: using 'lsb-first' property instead of 'big-endian-data'.

The 'big-endian-data' property is originally used to indicate whether the
LSB firstly or MSB firstly will be transmitted to the CODEC or received
from the CODEC, and there has nothing relation to the memory data.

Generally, if the audio data in big endian format, which will be using the
bytes reversion, Here this can only be used to bits reversion.

So using the 'lsb-first' instead of 'big-endian-data' can make the code
to be readable easier and more easy to understand what this property is
used to do.

This property used for configuring whether the LSB or the MSB is transmitted
first for the fifo data.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit eadb0019d206591e34e864b62059b292e157d8fc)
Documentation/devicetree/bindings/sound/fsl-sai.txt
sound/soc/fsl/fsl_sai.c
sound/soc/fsl/fsl_sai.h