mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
ASoC: sigmadsp: Fix endianness conversion issue
commit a3adb1432d upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2d2b65eeb5
commit
a565623f44
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user