]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SOF: sof-audio: pcm_id is __le32
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 10 Mar 2026 12:51:06 +0000 (12:51 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 10 Mar 2026 14:53:04 +0000 (14:53 +0000)
commit207fd1f4d84b7f073eaab556623bf4ad3a161f3f
tree2cd523c8c09fab18bc5c697c4f77dd582e975967
parent49c002275a8cabe2fcb3a99b39a1b7fae2351215
ASoC: SOF: sof-audio: pcm_id is __le32

The pcm_id value is __le32 so convert it before passing to the dev_dbg
function to be printed. Also fixup some other uses of __le32 data and
a couple of places where %u should have been used instead of %d

Picked up by sparse prototype for variadic and printf
function checking. Fixes a large number of sparse warnings, such as:

sound/soc/sof/pcm.c:84:25: warning: incorrect type in argument 4 (different base types)
sound/soc/sof/pcm.c:84:25:    expected unsigned int
sound/soc/sof/pcm.c:84:25:    got restricted __le32 [usertype] pcm_id

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Acked-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20260310125106.178944-1-ben.dooks@codethink.co.uk
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/compress.c
sound/soc/sof/ipc4-topology.c
sound/soc/sof/pcm.c
sound/soc/sof/sof-audio.h
sound/soc/sof/topology.c