diff options
author | Maciej S. Szmigiero <mail@maciej.szmigiero.name> | 2015-05-23 18:32:29 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-25 13:00:32 +0100 |
commit | e712bfca1ac1f63f622f87c2f33b57608f2a4d19 (patch) | |
tree | ab34256289bfda62f4ff9bbdf3f9e9ce5ded0395 /sound/soc/codecs/stac9766.c | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) | |
download | op-kernel-dev-e712bfca1ac1f63f622f87c2f33b57608f2a4d19.zip op-kernel-dev-e712bfca1ac1f63f622f87c2f33b57608f2a4d19.tar.gz |
ASoC: codecs: use SNDRV_PCM_FMTBIT_* for format bitmask
snd_soc_pcm_stream.formats is a bitmask of SNDRV_PCM_FMTBIT_*,
not of SNDRV_PCM_FORMAT_* (which are sequential integers),
however some of ASoC CODEC drivers use these values instead.
Found out by sparse on 0-day kernel tester.
Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/stac9766.c')
-rw-r--r-- | sound/soc/codecs/stac9766.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/stac9766.c b/sound/soc/codecs/stac9766.c index 6464caf..7f939ae 100644 --- a/sound/soc/codecs/stac9766.c +++ b/sound/soc/codecs/stac9766.c @@ -321,7 +321,7 @@ static struct snd_soc_dai_driver stac9766_dai[] = { .channels_max = 2, .rates = SNDRV_PCM_RATE_32000 | \ SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000, - .formats = SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE, + .formats = SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_BE, }, /* alsa ops */ .ops = &stac9766_dai_ops_digital, |