diff options
author | Mark Brown <broonie@kernel.org> | 2023-09-15 19:03:35 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-15 19:03:35 +0100 |
commit | b1ad9437edd7f145fda807efb604ad84348170af (patch) | |
tree | 6744cbbff92d2478d6cea1e6fe33d0ab3b8ac052 /sound/soc/sof/ipc4.c | |
parent | e9c7748084ac7236b657b9945789c574a3eb62e0 (diff) | |
parent | 5a8a9d70ecac3acbd49e70ad8f85153c0315643e (diff) | |
download | linux-stable-b1ad9437edd7f145fda807efb604ad84348170af.tar.gz linux-stable-b1ad9437edd7f145fda807efb604ad84348170af.tar.bz2 linux-stable-b1ad9437edd7f145fda807efb604ad84348170af.zip |
ASoC: SOF: ipc4/Intel: Implement split fw library
Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:
This series implements support for split library loading to comply with the HDA
DMA programming sequence recommendation, which is:
1. DSP side DMA programming and GEN bit set to 1
2. host side DMA programming and RUN bit set to 1
The SOF support for library loading is based on this sequence, backwards
compatibility with older reference firmware is supported (where only the
LOAD_LIBRARY message is supported).
Diffstat (limited to 'sound/soc/sof/ipc4.c')
-rw-r--r-- | sound/soc/sof/ipc4.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/sof/ipc4.c b/sound/soc/sof/ipc4.c index 9744627d6978..6c33ee5af32b 100644 --- a/sound/soc/sof/ipc4.c +++ b/sound/soc/sof/ipc4.c @@ -99,6 +99,10 @@ static int sof_ipc4_check_reply_status(struct snd_sof_dev *sdev, u32 status) to_errno: switch (status) { + case 2: + case 15: + ret = -EOPNOTSUPP; + break; case 8: case 11: case 105 ... 109: @@ -153,6 +157,7 @@ static const char * const ipc4_dbg_glb_msg_type[] = { DBG_IPC4_MSG_TYPE_ENTRY(GLB_SAVE_PIPELINE), DBG_IPC4_MSG_TYPE_ENTRY(GLB_RESTORE_PIPELINE), DBG_IPC4_MSG_TYPE_ENTRY(GLB_LOAD_LIBRARY), + DBG_IPC4_MSG_TYPE_ENTRY(GLB_LOAD_LIBRARY_PREPARE), DBG_IPC4_MSG_TYPE_ENTRY(GLB_INTERNAL_MESSAGE), DBG_IPC4_MSG_TYPE_ENTRY(GLB_NOTIFICATION), }; |