diff options
author | Peter Ujfalusi <[email protected]> | 2023-09-15 14:40:18 +0300 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-09-15 13:15:33 +0100 |
commit | 5a8a9d70ecac3acbd49e70ad8f85153c0315643e (patch) | |
tree | 14a0e9825c01f721baa802d6a30cb63cdfa9d889 /lib/string_helpers.c | |
parent | 4f0f3c774947fdd3c4236cef9372b329c276845c (diff) |
ASoC: SOF: Intel: hda-loader: Add support for split library loading
There is a certain sequence needs to be followed when configuring the HDA
DMA in host and DSP.
The firmware provides a way to handle this two stage sequencing by
splitting the library loading into two stage:
1st stage: LOAD_LIBRARY_PREPARE message
the lib_id is 0, used to configure the DMA on DSP side
2nd stage: LOAD_LIBRARY message
both dma_id and lib_id is valid, used for the actual transfer of
the library
In case a firmware without support for this two stage loading is used then
the second stage message will trigger the loading and the first stage will
return with error, which is ignored by the kernel.
Signed-off-by: Peter Ujfalusi <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Guennadi Liakhovetski <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Reviewed-by: Chao Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions