Skip to content

Commit

Permalink
ASoC: sigmadsp: Fix endianness conversion issue
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Dec 10, 2012
1 parent 9489e9d commit a3adb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/sigmadsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ EXPORT_SYMBOL(process_sigma_firmware);
static int sigma_action_write_regmap(void *control_data,
const struct sigma_action *sa, size_t len)
{
return regmap_raw_write(control_data, le16_to_cpu(sa->addr),
return regmap_raw_write(control_data, be16_to_cpu(sa->addr),
sa->payload, len - 2);
}

Expand Down

0 comments on commit a3adb14

Please sign in to comment.