Skip to content

Commit feac3db

Browse files
songxiebinggregkh
authored andcommitted
ALSA: usb-audio: qcom: Fix incorrect type in enable_audio_stream
[ Upstream commit 292286b ] Fix sparse warning: sound/usb/qcom/qc_audio_offload.c:943:27: sparse: incorrect type in argument 2 expected unsigned int val but got snd_pcm_format_t. Explicitly cast pcm_format to unsigned int for snd_mask_leave(). Fixes: 326bbc3 ("ALSA: usb-audio: qcom: Introduce QC USB SND offloading support") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202604062109.Oxi8JjWW-lkp@intel.com/ Signed-off-by: songxiebing <songxiebing@kylinos.cn> Link: https://patch.msgid.link/20260408083311.774173-1-songxiebing@kylinos.cn Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 19ad238 commit feac3db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/usb/qcom/qc_audio_offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ static int enable_audio_stream(struct snd_usb_substream *subs,
948948
_snd_pcm_hw_params_any(&params);
949949

950950
m = hw_param_mask(&params, SNDRV_PCM_HW_PARAM_FORMAT);
951-
snd_mask_leave(m, pcm_format);
951+
snd_mask_leave(m, (__force unsigned int)pcm_format);
952952

953953
i = hw_param_interval(&params, SNDRV_PCM_HW_PARAM_CHANNELS);
954954
snd_interval_setinteger(i);

0 commit comments

Comments
 (0)