summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorKarol Trzcinski <karolx.trzcinski@linux.intel.com>2020-04-15 22:27:55 +0200
committerMark Brown <broonie@kernel.org>2020-04-16 01:23:00 +0200
commit92be17a559a8872b655512b1cf9d0bc407bace33 (patch)
tree927ad8a4482fd41623ea0bbeed8f41160083f902 /include/sound
parentASoC: SOF: Mark get_ext* function ext_hdr arguments as const (diff)
downloadlinux-92be17a559a8872b655512b1cf9d0bc407bace33.tar.xz
linux-92be17a559a8872b655512b1cf9d0bc407bace33.zip
ASoC: SOF: Introduce offset in firmware data
It makes possible to provide extra information to host before downloading firmware. Extra data should be put at the beginning of firmware binary. Exchange is done without any effort on DSP side. This mechanism will be used in extended manifest. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20200415202816.934-4-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/sof.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/sof.h b/include/sound/sof.h
index a0cbca021230..969f554b0b7d 100644
--- a/include/sound/sof.h
+++ b/include/sound/sof.h
@@ -27,6 +27,9 @@ struct snd_sof_pdata {
struct device *dev;
+ /* indicate how many first bytes shouldn't be loaded into DSP memory. */
+ size_t fw_offset;
+
/*
* notification callback used if the hardware initialization
* can take time or is handled in a workqueue. This callback