aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Trzcinski <[email protected]>2020-09-17 13:56:27 +0300
committerMark Brown <[email protected]>2020-09-17 15:53:16 +0100
commit6eab771472af50e11a484d56ba444e2ec82e9126 (patch)
tree79afd753266cf36a39bf13fdd2280689250e33e0
parent18ebffe4d043bf5f3a9b669d8d91f855bde8f6b7 (diff)
ASoC: SOF: Add `src_hash` to `sof_ipc_fw_version` structure
This field will be used to compare ldc file with loaded fw version, to assert validity of trace logs. Value used in sof-logger. Signed-off-by: Karol Trzcinski <[email protected]> Reviewed-by: Guennadi Liakhovetski <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Kai Vehmanen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--include/sound/sof/info.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sound/sof/info.h b/include/sound/sof/info.h
index 313e3e70c630..0b7101aef596 100644
--- a/include/sound/sof/info.h
+++ b/include/sound/sof/info.h
@@ -46,9 +46,11 @@ struct sof_ipc_fw_version {
uint8_t time[10];
uint8_t tag[6];
uint32_t abi_version;
+ /* used to check FW and ldc file compatibility, reproducible value */
+ uint32_t src_hash;
/* reserved for future use */
- uint32_t reserved[4];
+ uint32_t reserved[3];
} __packed;
/* FW ready Message - sent by firmware when boot has completed */