ASoC: fsl: fix initialization of DMA buffers
authorTimur Tabi <timur@freescale.com>
Wed, 8 Jun 2011 20:02:56 +0000 (15:02 -0500)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 9 Jun 2011 10:53:11 +0000 (11:53 +0100)
commit0cd114fff9ace7014c0d3ef8ab385fc5d3cf2d2f
tree60cb1a86cad6a267a1bbf3139776c6771ec1cd50
parent3115ae174620eeab4b16f52c8d0a9a35d2717e3c
ASoC: fsl: fix initialization of DMA buffers

The DMA (PCM) driver used by some Freescale PowerPC supports separate DAIs
for playback and capture, so DMA buffers should be allocated only for the
initialized streams.  Instead of checking for the number of active channels,
which apparently is not reliable, check to see if the actual stream object
exists.

Also provide a better name for the DMA interrupt.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/fsl_dma.c