ASoC: Intel: avs: Account for libraries when booting basefw
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 16 May 2022 10:11:02 +0000 (12:11 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 17 May 2022 10:57:52 +0000 (11:57 +0100)
commit81a299105d69344233e6aed8565522da9beec99e
treefe383342dacf1c7ce14c43a8d83044350667c6ef
parentdba2d5ae4cb03ef4ca8a82ce8d81e54b75cf4165
ASoC: Intel: avs: Account for libraries when booting basefw

Not all modules are part of base firmware. Some are part of loadable
libraries. These need to be loaded after base firmware reports ready
status through FW_READY notification.

Their loading process is similar to the base firmware's one. Request the
binary file, verify and strip the manifest and load the actual code into
DSP memory with help of CLDMA or HD-Audio render stream, depending on
audio device generation.

List of libraries needed for loading is obtained through the topology -
vendor sections specifying the name of firmware files to request.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20220516101116.190192-2-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/avs.h
sound/soc/intel/avs/loader.c