]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57a9942a91a5073dde0920b677155df7f8fe5938
tree4a937cd72ecbd52980d09799aab0092a0f1bb4b8
parent884c81d2f5544a8cd5b2d3e41fccbd2e624ca0bb
ASoC: check for substream not channels_min in pcm engines

This is a follow up on 21a89e0809b614c which fixes the other affected
pcm engines.

Description from 21a89e0809b614c:
 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