ASoC: SOF: ipc3-loader: Implement firmware parsing and loading
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Mon, 25 Apr 2022 22:11:21 +0000 (15:11 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 29 Apr 2022 12:06:08 +0000 (13:06 +0100)
commitd2458baa799fff377660d86323dd20a3f4deecb4
tree33ce5258bd6896201a2da203d9c7b516d4e33b95
parent61bafd1c4571ceb9cdf1830a257eac873d0b68ee
ASoC: SOF: ipc3-loader: Implement firmware parsing and loading

Add the IPC3 dependent implementation of validating the firmware image,
parsing the ext manifest and to load modules via memcpy.

The code introduced by this commit is the IPC dependent code from the
loader.c, which is going to be removed later.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220425221129.124615-3-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/Makefile
sound/soc/sof/ipc3-loader.c [new file with mode: 0644]
sound/soc/sof/ipc3-priv.h [new file with mode: 0644]
sound/soc/sof/ipc3.c