]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: au88x0: Fix sparse warning wrt PCM format type
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 21:19:40 +0000 (23:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Jul 2018 07:05:28 +0000 (09:05 +0200)
commitb82435ab1ee5abba973f93b5660e888ab637e2c3
tree6ba713c5fec60a865d3e196be4473b18d6e37e0c
parent0021e2197d4cfc64ee01f27fa8a81e3d1b8eafaa
ALSA: au88x0: 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 vortex_alsafmt_aspfmt() with the proper snd_pcm_format_t
type.

This fixes the sparse warning like:
  sound/pci/au88x0/au88x0_core.c:2778:14: warning: restricted snd_pcm_format_t degrades to integer

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/au88x0/au88x0.h
sound/pci/au88x0/au88x0_core.c