ASoC: Allow PCMs to restrict the supported formats
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 6 Jan 2014 13:19:16 +0000 (14:19 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 9 Jan 2014 14:31:59 +0000 (14:31 +0000)
commit16d7ea9167839d0b971ab29030886280595dd5fc
tree53ef3ab32b49ffaeafdaa4265f30ba2f9e72800f
parent1e9de42f4324b91ce2e9da0939cab8fc6ae93893
ASoC: Allow PCMs to restrict the supported formats

Some DMA cores might add additional restrictions on which in memory audio
formats can be supported by the compound sound card. If the PCM component
specifies a set of formats it supports (by setting the formats field to non 0)
take these into account when calculating the format set for the compound sound
card.

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