Skip to content

Commit 6e5329c

Browse files
bardliaobroonie
authored andcommitted
ASoC: SOF: loader: handle all SOF_IPC_EXT types
Do not emit a warning for extended firmware header fields that are not used by kernel. This creates unnecessary noise to kernel logs like: sof-audio-pci 0000:00:1f.3: warning: unknown ext header type 3 size 0x1c sof-audio-pci 0000:00:1f.3: warning: unknown ext header type 4 size 0x10 Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20201021182419.1160391-1-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 20afe58 commit 6e5329c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

sound/soc/sof/loader.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset)
118118
case SOF_IPC_EXT_CC_INFO:
119119
ret = get_cc_info(sdev, ext_hdr);
120120
break;
121+
case SOF_IPC_EXT_UNUSED:
122+
case SOF_IPC_EXT_PROBE_INFO:
123+
case SOF_IPC_EXT_USER_ABI_INFO:
124+
/* They are supported but we don't do anything here */
125+
break;
121126
default:
122127
dev_warn(sdev->dev, "warning: unknown ext header type %d size 0x%x\n",
123128
ext_hdr->type, ext_hdr->hdr.size);

0 commit comments

Comments
 (0)