Re: [PATCH v2] ASoC: intel: avs: Fix type mismatch in variable assignment
From: Cezary Rojewski
Date: Tue Apr 07 2026 - 15:13:06 EST
On 2026-03-25 3:17 AM, songxiebing wrote:
The input parameter requirement for snd_pcm_format_physical_with is
snd_pcm_format_t,but params->codec.format is __u32, resulting in a
mismatch error:
sparse warnings: (new ones prefixed by >>)
sound/soc/intel/avs/probes.c:147:58: sparse: expected restricted snd_pcm_format_t [usertype] formatsound/soc/intel/avs/probes.c:147:58: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted snd_pcm_format_t [usertype] format @@ got unsigned int [usertype] format @@
sound/soc/intel/avs/probes.c:147:58: sparse: got unsigned int [usertype] format
So here, the format is cast to snd_pcm_format_t.
Signed-off-by: songxiebing <songxiebing@xxxxxxxxxx>
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202512190032.hnwn9mCV-lkp@xxxxxxxxx/
While I see that this just got merged, the signed-off tag shall be the last. Other than that, looks good.
Reviewed-by: Cezary Rojewski <cezary.rojewski@xxxxxxxxx>