]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb741cab4a51764d685c05499b3a7aa78d22f1506
tree60cb1a86cad6a267a1bbf3139776c6771ec1cd50
parentade5c67299f8c68342244c45b17f6b3b9c9ca879
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