ASoC: check for substream not channels_min in pcm engines
authorJoachim Eastwood <joachim.eastwood@jotron.com>
Sun, 1 Jan 2012 00:58:44 +0000 (01:58 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 7 Jan 2012 19:18:05 +0000 (11:18 -0800)
This is a follow up on 53dea36c70c1857 which fixes the other affected
pcm engines.

Description from 53dea36c70c1857:
 Don't rely on the codec's channels_min information to decide wheter or
 not allocate a substream's DMA buffer. Rather check if the substream
 itself was allocated previously.

Without this patch I was seeing null-pointer dereferenc in atmel-pcm.

Signed-off-by: Joachim Eastwood <joachim.eastwood@jotron.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found