aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/pcm_params.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-02-06 17:39:38 +0100
committerTakashi Iwai <tiwai@suse.de>2020-02-10 08:26:58 +0100
commit8c356c524af88c0ad4d75b30fa201ed43d9a64c2 (patch)
tree92e0c6986e584aff03c6618752bb5e89261a89d9 /include/sound/pcm_params.h
parentALSA: emu8000: Fix the cast to __user pointer (diff)
downloadlinux-dev-8c356c524af88c0ad4d75b30fa201ed43d9a64c2.tar.xz
linux-dev-8c356c524af88c0ad4d75b30fa201ed43d9a64c2.zip
ALSA: aloop: Fix PCM format assignment
Fix sparse warnings about PCM format assignment regarding the strong typed snd_pcm_format_t: sound/drivers/aloop.c:352:45: warning: restricted snd_pcm_format_t degrades to integer sound/drivers/aloop.c:355:39: warning: incorrect type in assignment (different base types) sound/drivers/aloop.c:355:39: expected unsigned int format sound/drivers/aloop.c:355:39: got restricted snd_pcm_format_t [usertype] format sound/drivers/aloop.c:1435:34: warning: incorrect type in assignment (different base types) sound/drivers/aloop.c:1435:34: expected long max sound/drivers/aloop.c:1435:34: got restricted snd_pcm_format_t [usertype] sound/drivers/aloop.c:1565:39: warning: incorrect type in assignment (different base types) sound/drivers/aloop.c:1565:39: expected unsigned int format sound/drivers/aloop.c:1565:39: got restricted snd_pcm_format_t [usertype] Some code in this driver assigns an integer value to snd_pcm_format_t via control API, and they need to be with the explicit cast. No functional changes, just sparse warning fixes. Link: https://lore.kernel.org/r/20200206163945.6797-2-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/pcm_params.h')
0 files changed, 0 insertions, 0 deletions