]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dpcm: Allow PCMs to omit the set of supported formats
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 6 Jan 2014 13:19:07 +0000 (14:19 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 6 Jan 2014 17:42:42 +0000 (17:42 +0000)
commit17ab93a7b8597b1de6a0a8f1dc5ed3abb9acb8e4
tree0c6a5cccccac168355a3e28f0543db032ce9d5a0
parenta224cbe491ee9c64042a1c8d0bdb40a2d56fb331
ASoC: dpcm: Allow PCMs to omit the set of supported formats

Allow PCMs that do not impose any restrictions on the supported formats to set
the formats field to 0, Instead of assuming that this means that the PCM does
not support any formats (which doesn't make much sense), assume that it supports
all formats. This brings the behavior of DPCM closer to that of non-DPCM.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-pcm.c