ASoC: pxa-ssp: Correct check for stream presence
commitcef65bae7fe7fb3abeafb5b64c90bbe5e7e3dc27
authorDaniel Mack <zonque@gmail.com>
Wed, 22 Jun 2011 18:48:25 +0000 (22 20:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:15:31 +0000 (8 23:15 -0700)
tree48b19e6c4fdc279c6a2d9fbb53885fe841549840
parent43aa522a034e574853b949e5acb97d05776f5b8a
ASoC: pxa-ssp: Correct check for stream presence

commit 53dea36c70c1857149a8c447224e3936eb8b5339 upstream.

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.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/soc/pxa/pxa2xx-pcm.c