Skip to contentSkip to conversation

ASoC: sigmadsp: Fix endianness conversion issue

PATCH Applied Lars-Peter Clausen 2 participants 2 messages Dec 7, 2012 – Dec 10, 2012

Subsystems (3)
lore
Share & tools
lore

Lars-Peter Clausen

author maintainer
#0 lore raw

PATCH 1/1 ASoC: sigmadsp: Fix endianness conversion issue

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

---
 sound/soc/codecs/sigmadsp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/sigmadsp.c +1 -1
index 5be42bf..4068f24 100644
@@ -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);
 }
 
Signature · 1 line
1.8.0
Applied
#1 lore raw
Quoted 2 lines · Lars-Peter Clausen

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

Applied, thanks.