]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: use SNDRV_PCM_FMTBIT_* for format bitmask
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Sat, 23 May 2015 16:32:29 +0000 (18:32 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 25 May 2015 12:00:32 +0000 (13:00 +0100)
commit775543ee799a7585bb9b89e13a43b91e3f739d2d
treeab34256289bfda62f4ff9bbdf3f9e9ce5ded0395
parentdd4a0ac5a66093ba1477238fa2d0e835dd935ff6
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>
sound/soc/codecs/88pm860x-codec.c
sound/soc/codecs/stac9766.c
sound/soc/codecs/wm8900.c
sound/soc/codecs/wm9713.c