]> 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)
commit6267f3915daa0e79e82365dd37b491098cd77cc5
tree60cb1a86cad6a267a1bbf3139776c6771ec1cd50
parent6b01f7669061cef4f424a73d092eda4d32aa0334
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