diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-26 00:17:21 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-07-26 19:09:08 +0300 |
commit | 79b8a50813a80ac15fdcdc96674098dee15eaaf5 (patch) | |
tree | ef19110f352d0ccf36bb068843c569a2ac07160d /sound | |
parent | ebc22af0c9268dc4032326c20b02f2f227203330 (diff) | |
download | linux-79b8a50813a80ac15fdcdc96674098dee15eaaf5.tar.xz |
ASoC: pcm186x: Declare PCM format with snd_pcm_format_t
The PCM format type is with __bitwise, so we should use the dedicated
snd_pcm_format_t instead of int.
This fixes the sparse warning like:
sound/soc/codecs/pcm186x.c:268:44: warning: incorrect type in initializer (different base types)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/pcm186x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/pcm186x.c b/sound/soc/codecs/pcm186x.c index 88fde70b1e9e..690c26e7389e 100644 --- a/sound/soc/codecs/pcm186x.c +++ b/sound/soc/codecs/pcm186x.c @@ -265,7 +265,7 @@ static int pcm186x_hw_params(struct snd_pcm_substream *substream, struct snd_soc_component *component = dai->component; struct pcm186x_priv *priv = snd_soc_component_get_drvdata(component); unsigned int rate = params_rate(params); - unsigned int format = params_format(params); + snd_pcm_format_t format = params_format(params); unsigned int width = params_width(params); unsigned int channels = params_channels(params); unsigned int div_lrck; |