]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: SOF: sof-audio: pcm_id is __le32
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 24 Mar 2026 13:34:03 +0000 (13:34 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 24 Mar 2026 13:53:37 +0000 (13:53 +0000)
commit4478886310e5a2cadb3d07ce2d8564d1fd3e206a
treed773485f680f98a305b835752d53680f6313605f
parent141efa53b9875c059d0edec5212fbcd311ec4896
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/20260324133403.107708-1-ben.dooks@codethink.co.uk
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/compress.c
sound/soc/sof/pcm.c
sound/soc/sof/topology.c