ASoC: imx: use more robust checking of available streams
authorWolfram Sang <w.sang@pengutronix.de>
Thu, 25 Aug 2011 13:54:56 +0000 (15:54 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 31 Aug 2011 08:42:24 +0000 (09:42 +0100)
commit35dcf58634cf696966cdec69f62b14a7f49a8c42
tree641e6b41e21e8a341bbd92f7c170e7dc9533ad3d
parentd4ba7854c9ea388e83731ee4b3c6546076f70f9d
ASoC: imx: use more robust checking of available streams

Replace the channels_min check with a check for the relevant substream
being present. Suggested here [1] when mxs implemented the
audio-support.

[1] http://www.spinics.net/lists/arm-kernel/msg133010.html

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/imx/imx-pcm-fiq.c
sound/soc/imx/imx-ssi.c