summaryrefslogtreecommitdiff
path: root/sound/soc/sof/ipc3-loader.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-07-19 21:16:21 +0300
committerMark Brown <broonie@kernel.org>2022-07-19 21:16:21 +0300
commit16824dffcf616b829e4aca3a06f45c0ad743a99c (patch)
tree0d1262e3a1eba783ec175aead0049cbce38d3020 /sound/soc/sof/ipc3-loader.c
parent09f852894553ac72e25a6b6012a1f5ff34be5be5 (diff)
parent321add801bcd186c6b5477c0857521e127dbf016 (diff)
downloadlinux-16824dffcf616b829e4aca3a06f45c0ad743a99c.tar.xz
ASoC: SOF: Intel: updates and cleanups
Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>: Set of updates for IPC3, IPC4, MTL support and cleanups for the topology filename override which was broken for HDaudio platforms.
Diffstat (limited to 'sound/soc/sof/ipc3-loader.c')
-rw-r--r--sound/soc/sof/ipc3-loader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/sof/ipc3-loader.c b/sound/soc/sof/ipc3-loader.c
index c573e7593808..bf423ca4e97b 100644
--- a/sound/soc/sof/ipc3-loader.c
+++ b/sound/soc/sof/ipc3-loader.c
@@ -109,7 +109,7 @@ static int ipc3_fw_ext_man_get_config_data(struct snd_sof_dev *sdev,
return 0;
}
-static ssize_t ipc3_fw_ext_man_size(const struct firmware *fw)
+static ssize_t ipc3_fw_ext_man_size(struct snd_sof_dev *sdev, const struct firmware *fw)
{
const struct sof_ext_man_header *head;
@@ -131,6 +131,8 @@ static ssize_t ipc3_fw_ext_man_size(const struct firmware *fw)
return head->full_size;
/* otherwise given fw don't have an extended manifest */
+ dev_dbg(sdev->dev, "Unexpected extended manifest magic number: %#x\n",
+ head->magic);
return 0;
}
@@ -147,7 +149,7 @@ static size_t sof_ipc3_fw_parse_ext_man(struct snd_sof_dev *sdev)
head = (struct sof_ext_man_header *)fw->data;
remaining = head->full_size - head->header_size;
- ext_man_size = ipc3_fw_ext_man_size(fw);
+ ext_man_size = ipc3_fw_ext_man_size(sdev, fw);
/* Assert firmware starts with extended manifest */
if (ext_man_size <= 0)