]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28bdd4df4fe998ac8ef110717129720afc4d07d0
tree641e6b41e21e8a341bbd92f7c170e7dc9533ad3d
parent6c8baae67b6497dc55af6d53c7049e0ee51bdb4c
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