ASoC: pcm: Require both CODEC and CPU support when declaring stream caps
authorMark Brown <broonie@kernel.org>
Sat, 1 Jun 2013 22:13:53 +0000 (23:13 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 3 Jun 2013 08:55:00 +0000 (09:55 +0100)
commit056790923e1c4eed5d8cc502e1092944a2b23025
treefd9f9ecb179098f47466cb45bd770ca59a1b1727
parente4aa937ec75df0eea0bee03bffa3303ad36c986b
ASoC: pcm: Require both CODEC and CPU support when declaring stream caps

When declaring playback and capture capabilities check for both CODEC
side and CPU side support rather than only checking for CODEC side
support.  While it is unusual some CPUs do have unidirectional DAIs.

Reported-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c