]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: sb: Fix sparse warning wrt PCM format type
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 21:19:44 +0000 (23:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Jul 2018 07:05:33 +0000 (09:05 +0200)
commit7ccb875a6a0d7a78f9fdc68aa7207f3a309a695b
treea9fdf7009ee75eb7c3340c73f4bbf1008a740138
parent0272f4198c40f7a77114ccbbf562947213a63976
ALSA: sb: Fix sparse warning wrt PCM format type

The PCM format type is with __bitwise, and it can't be converted from
integer implicitly.  Instead of an ugly cast, declare the function
argument of snd_sb_csp_autoload() with the proper snd_pcm_format_t
type.

This fixes the sparse warnings like:
  sound/isa/sb/sb16_csp.c:743:22: warning: restricted snd_pcm_format_t degrades to integer

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/sb16_csp.h
sound/isa/sb/sb16_csp.c