diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-25 23:19:36 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-07-27 09:05:24 +0200 |
commit | a6ea5fe95ab4a1a7af6d57429fe3ecde9acf5b5a (patch) | |
tree | c48bd1821ebfadb97b3d4427223e26366132434a /sound/core/oss/pcm_oss.c | |
parent | d6b340d7cb33c816ef4abe8143764ec5ab14a5cc (diff) | |
download | linux-a6ea5fe95ab4a1a7af6d57429fe3ecde9acf5b5a.tar.bz2 |
ALSA: hda: Fix implicit PCM format type conversion
The PCM format type is defined with __bitwise, hence it can't be
passed as integer but needs an explicit cast. In this patch, instead
of the messy cast flood, define the format argument of
snd_hdac_calc_stream_format() to be the proper snd_pcm_format_t type.
This fixes sparse warnings like:
sound/hda/hdac_device.c:760:38: warning: incorrect type in argument 1 (different base types)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/oss/pcm_oss.c')
0 files changed, 0 insertions, 0 deletions