Re: [PATCH v2] ALSA: usb-audio: qcom: Fix incorrect type in enable_audio_stream

From: Takashi Iwai

Date: Wed Apr 08 2026 - 04:54:45 EST


On Wed, 08 Apr 2026 10:33:11 +0200,
songxiebing wrote:
>
> 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@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202604062109.Oxi8JjWW-lkp@xxxxxxxxx/
> Signed-off-by: songxiebing <songxiebing@xxxxxxxxxx>
> ---
> v2:
> - Add __force prefix for cast

Applied to for-next branch. Thanks.


Takashi