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)
commit8f1ec93ae94e95e717283575997dd134a4c5397f
tree98565edd56b352119cadefbae12b1a1fc1663258
parent78e45c99f6d470e6069c8669ee533c97cc5fd296
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