]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: pcm: fix __le32 cast warning in snd_pcm_set_sync_per_card
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 17 Jun 2026 10:29:43 +0000 (11:29 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Jun 2026 10:33:59 +0000 (12:33 +0200)
commit53d1ae7c20d97b08741d667ba54bb09d330eba3b
tree7e483df5ab0f9c706cc3a612e33aaccc3412dfc8
parent9e6febe7891316182bcd80cb46b745a08ad0cacf
ALSA: pcm: fix __le32 cast warning in snd_pcm_set_sync_per_card

In snd_pcm_set_sync_per_card() the le32 value is written to an u32
instead of an __le32 pointer. Fix the following warning by fixing
the type:

sound/soc/soc-pcm.c:2166:9: warning: incorrect type in argument 7 (different base types)
sound/soc/soc-pcm.c:2166:9:    expected int
sound/soc/soc-pcm.c:2166:9:    got restricted snd_pcm_format_t

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Link: https://patch.msgid.link/20260617102943.893950-1-ben.dooks@codethink.co.uk
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c