]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Remove byte swap in 4x12 SPI write
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 10 May 2011 21:55:21 +0000 (23:55 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 11 May 2011 13:55:45 +0000 (15:55 +0200)
commitaa9a9893a77c7294820f292e2f6dd759f05be580
treebf5c65f30a4f67f41cc3544e10c57696ea9b3173
parentc8b7de97e48056ab2b3f83bf78434a73059459c2
ASoC: Remove byte swap in 4x12 SPI write

snd_soc_4_12_spi_write() contains a byte swap. Since this code was written
for an Analog CODEC on a Blackfin reference board it appears that this is
done because while Blackfin is little endian the CODEC is big endian (as
are most CODECs).

Push this up into the generic 4x12 write function and use cpu_to_be16() to
do the byte swap so things are more regular and things work on both CPU
endiannesses.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/soc-cache.c