]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Use consistent byte ordering in snd_soc_bytes_get
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Fri, 29 Nov 2013 13:33:11 +0000 (13:33 +0000)
committerMark Brown <broonie@linaro.org>
Fri, 29 Nov 2013 15:09:44 +0000 (15:09 +0000)
commit12e9b65bd2c88feb054c5d4a34841dd1349d1f17
tree98565edd56b352119cadefbae12b1a1fc1663258
parent30ac4eb049d7ccdbf5e9a75bfca4d51c0e3a98ab
ASoC: core: Use consistent byte ordering in snd_soc_bytes_get

snd_soc_bytes_put treats the data in the binary control as big endian
words, however snd_soc_bytes_get uses the endian of the host machine.
This causes the two functions to be inconsistant with how the mask is
applied on little endian machines.

This patch applies the big_endian format used in snd_soc_bytes_put to
snd_soc_bytes_get.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-core.c