]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: usb-audio: qcom: Fix incorrect type in enable_audio_stream
authorsongxiebing <songxiebing@kylinos.cn>
Wed, 8 Apr 2026 08:33:11 +0000 (16:33 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 8 Apr 2026 08:48:17 +0000 (10:48 +0200)
commit292286b2d229fb732421429b027d38ac3f969383
tree30bb4d42d48a021cbe5051af84edec23f769d63e
parent66f6f543283e91b8899b0dd109d8f15a529e8464
ALSA: usb-audio: qcom: Fix incorrect type in enable_audio_stream

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: 326bbc348298 ("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>
sound/usb/qcom/qc_audio_offload.c