ASoC: core: use regmap's parse_val to do endian translation
authorNenghua Cao <nhcao@marvell.com>
Wed, 19 Feb 2014 10:44:58 +0000 (18:44 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 6 Mar 2014 09:46:31 +0000 (17:46 +0800)
commita1a564ed6abf62e05fcffa9ed3f46a826400df3a
treedda4a3ea7927703487f1536d186443c84729aff9
parentd083f580e5b940834a93ab741cdf064f0324dc0f
ASoC: core: use regmap's parse_val to do endian translation

    In snd_soc_bytes_put function, it forces cpu to do cpu_to_be translation,
but for mmio bus which uses REGMAP_ENDIAN_NATIVE, it doesn't need to do
endian translation. So it is better to use regmap's api which can decide
if this translation is needed according to bus configuration.

Signed-off-by: Nenghua Cao <nhcao@marvell.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-core.c