Commit a3adb1432d7a3ad86bb17a1638e44414537e4118

Authored by Lars-Peter Clausen
Committed by Mark Brown
1 parent 9489e9dcae

ASoC: sigmadsp: Fix endianness conversion issue

The 'addr' field of the sigma_action struct is stored as big endian in the
firmware file.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

sound/soc/codecs/sigmadsp.c
... ... @@ -225,7 +225,7 @@
225 225 static int sigma_action_write_regmap(void *control_data,
226 226 const struct sigma_action *sa, size_t len)
227 227 {
228   - return regmap_raw_write(control_data, le16_to_cpu(sa->addr),
  228 + return regmap_raw_write(control_data, be16_to_cpu(sa->addr),
229 229 sa->payload, len - 2);
230 230 }
231 231