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)
commit25e9e7565f9aa9e4b976387a3fab60bfaa4efac8
tree4a937cd72ecbd52980d09799aab0092a0f1bb4b8
parent739be96ab83755e10fd0c2b6a34c8a73254527f7
ASoC: check for substream not channels_min in pcm engines

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>
13 files changed:
sound/soc/atmel/atmel-pcm.c
sound/soc/blackfin/bf5xx-ac97-pcm.c
sound/soc/blackfin/bf5xx-i2s-pcm.c
sound/soc/blackfin/bf5xx-tdm-pcm.c
sound/soc/davinci/davinci-pcm.c
sound/soc/ep93xx/ep93xx-pcm.c
sound/soc/jz4740/jz4740-pcm.c
sound/soc/kirkwood/kirkwood-dma.c
sound/soc/mid-x86/sst_platform.c
sound/soc/omap/omap-pcm.c
sound/soc/samsung/dma.c
sound/soc/samsung/idma.c
sound/soc/tegra/tegra_pcm.c
This page took 0.028883 seconds and 5 git commands to generate.