Skip to content
Commit a6ea5fe9 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent d6b340d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment